INNER CODE UNIT · Python
memoryCheckModule
Haeri/PhotonBox · scripts/code_checker.py:61
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 -----------------
def syncCheck(item):
global SYNC_MOD_ERR
basename = os.path.basename(item).replace(".h", "")
cpp_file = item.replace(header_path, cpp_path)
cpp_file = cpp_file.replace(".h", ".cpp")
if not os.path.isfile(cpp_file) and item.find("/shader/") == -1:
for f in all_cpp:
if f.find(basename) != -1:
SYNC_MOD_ERR += 1