Function that decides, how variable of type 'type' should be checked for pointers
| 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 | |
| 1002 | struct GlobalRoot |
no test coverage detected