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

Method AssertCoroutine

NULLC/StdLib.cpp:940–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void NULLC::AssertCoroutine(NULLCRef f)
941{
942 if(linker->exTypes[f.typeID].subCat != ExternTypeInfo::CAT_FUNCTION)
943 nullcThrowError("Argument is not a function");
944 NULLCFuncPtr *fPtr = (NULLCFuncPtr*)f.ptr;
945 if(linker->exFunctions[fPtr->id].funcCat != ExternFuncInfo::COROUTINE)
946 nullcThrowError("ERROR: function is not a coroutine");
947}
948
949NULLCArray NULLC::GetFinalizationList()
950{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected