INNER CODE UNIT · Python

syncCheck

Haeri/PhotonBox · scripts/code_checker.py:70

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
				print("CPP MISPLACED: " + item + " at " + f)
	

def syncCheckModule():
	pathwalk(header_path, (".h"), syncCheck)
	if SYNC_MOD_ERR == 0:
		print("Synchronization Check\t - OK")
	else:
		print("Synchronization Check ended with " + str(SYNC_MOD_ERR) + " errors!")	

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…