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

Function CallAllocationFunction

NULLC/Callbacks.cpp:2688–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2686}
2687
2688void CallAllocationFunction(const char* pos, const char* name)
2689{
2690 HashMap<FunctionInfo*>::Node *curr = funcMap.first(GetStringHash(name));
2691 if(!curr)
2692 ThrowError(pos, "ERROR: failed to find memory allocation function");
2693 FunctionInfo *func = curr->value;
2694 CodeInfo::nodeList.push_back(new NodeFuncCall(func, func->funcType->funcType));
2695}
2696void AddTypeAllocation(const char* pos, bool arrayType)
2697{
2698 if(currType == typeVoid)

Callers 3

AddTypeAllocationFunction · 0.85
FunctionEndFunction · 0.85
CreateRedirectionTablesFunction · 0.85

Calls 4

ThrowErrorFunction · 0.85
GetStringHashFunction · 0.70
firstMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected