INNER CODE UNIT · Python

checkMemory

Haeri/PhotonBox · scripts/code_checker.py:52

def checkMemory(item):
	global MEMORY_MOD_ERR
	data = ""
	with open(item, 'r') as myfile:
		data = myfile.read()
	if data.find(MEMORY_CHECK)  == -1:
		MEMORY_MOD_ERR += 1
		print("MEMORY CHECH MISSING: " + item)

def memoryCheckModule():
	pathwalk(cpp_path, (".cpp"), checkMemory)
	if MEMORY_MOD_ERR == 0:
		print("Memory Debug Check\t - OK")
	else:
		print("Memory Debug Check ended with " + str(MEMORY_MOD_ERR) + " errors!")	
		

# ----------- CPP-H SYNC CHECK -----------------

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…