INNER CODE UNIT · Python
indexCpp
Haeri/PhotonBox · scripts/code_checker.py:35
def indexCpp(item):
global cpp_loc
all_cpp.append(item)
cpp_loc += sum(1 for i in open(item, 'rb'))
def indexAll():
pathwalk(header_path, (".h"), indexHeader)
pathwalk(cpp_path, (".cpp"), indexCpp)
def countFiles():
print("Total lines of code: \t\t\t" + str(header_loc + cpp_loc))
print("Total lines of code in Headers:\t\t" + str(header_loc))
print("Total lines of code in CPP files:\t" + str(cpp_loc))
# ----------- MEMORY CHECK -----------------
def checkMemory(item):