MCPcopy Create free account
hub / github.com/WheretIB/nullc / CheckFunction

Function CheckFunction

NULLC/translation/runtime.cpp:969–979  ·  view source on GitHub ↗

Function that checks function context for pointers

Source from the content-addressed store, hash-verified

967
968 // Function that checks function context for pointers
969 void CheckFunction(char* ptr)
970 {
971 NULLCFuncPtr<> *fPtr = (NULLCFuncPtr<>*)ptr;
972 // If there's no context, there's nothing to check
973 if(!fPtr->context)
974 return;
975 const NULLCFuncInfo &func = funcTableExt[fPtr->id];
976 // If context is "this" pointer
977 if(func.extraType != ~0u)
978 MarkPointer((char*)&fPtr->context, __nullcTypeList[func.extraType], true);
979 }
980
981 // Function that decides, how variable of type 'type' should be checked for pointers
982 void CheckVariable(char* ptr, const NULLCTypeInfo& type)

Callers 2

CheckArrayFunction · 0.70
CheckVariableFunction · 0.70

Calls 1

MarkPointerFunction · 0.70

Tested by

no test coverage detected