Function that checks function context for pointers
| 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) |
no test coverage detected