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

Function nullcGetFunction

NULLC/nullc.cpp:713–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711}
712
713nullres nullcGetFunction(const char* name, NULLCFuncPtr* func)
714{
715 using namespace NULLC;
716 NULLC_CHECK_INITIALIZED(false);
717
718 if(!func)
719 {
720 nullcLastError = "ERROR: passed pointer to NULLC function is 'null'";
721 return false;
722 }
723 unsigned int index = nullcFindFunctionIndex(name);
724 if(index == ~0u)
725 return false;
726 func->id = index;
727 func->context = NULL;
728 return true;
729}
730
731nullres nullcSetFunction(const char* name, NULLCFuncPtr func)
732{

Callers 1

RunInterfaceTestsFunction · 0.85

Calls 1

nullcFindFunctionIndexFunction · 0.85

Tested by 1

RunInterfaceTestsFunction · 0.68