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

Function CheckVariable

NULLC/translation/runtime.cpp:982–999  ·  view source on GitHub ↗

Function that decides, how variable of type 'type' should be checked for pointers

Source from the content-addressed store, hash-verified

980
981 // Function that decides, how variable of type 'type' should be checked for pointers
982 void CheckVariable(char* ptr, const NULLCTypeInfo& type)
983 {
984 switch(type.category)
985 {
986 case NULLC_ARRAY:
987 CheckArray(ptr, type);
988 break;
989 case NULLC_POINTER:
990 MarkPointer(ptr, type, true);
991 break;
992 case NULLC_CLASS:
993 CheckClass(ptr, type);
994 break;
995 case NULLC_FUNCTION:
996 CheckFunction(ptr);
997 break;
998 }
999 }
1000}
1001
1002struct GlobalRoot

Callers 3

MarkPointerFunction · 0.70
CheckClassFunction · 0.70
MarkUsedBlocksFunction · 0.70

Calls 4

CheckArrayFunction · 0.70
MarkPointerFunction · 0.70
CheckClassFunction · 0.70
CheckFunctionFunction · 0.70

Tested by

no test coverage detected