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

Function AddFunctionExternal

NULLC/Callbacks.cpp:311–321  ·  view source on GitHub ↗

Finds variable inside function external variable list, and if not found, adds it to a list

Source from the content-addressed store, hash-verified

309
310// Finds variable inside function external variable list, and if not found, adds it to a list
311FunctionInfo::ExternalInfo* AddFunctionExternal(FunctionInfo* func, VariableInfo* var)
312{
313 unsigned int i = 0;
314 for(FunctionInfo::ExternalInfo *curr = func->firstExternal; curr; curr = curr->next, i++)
315 if(curr->variable == var)
316 return curr;
317
318 func->AddExternal(var);
319 var->usedAsExternal = true;
320 return func->lastExternal;
321}
322
323char* GetClassFunctionName(TypeInfo* type, const char* funcName)
324{

Callers 4

AddGetAddressNodeFunction · 0.85
AddDefineVariableNodeFunction · 0.85
FunctionStartFunction · 0.85
FunctionEndFunction · 0.85

Calls 1

AddExternalMethod · 0.80

Tested by

no test coverage detected