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

Function nullcThrowError

NULLC/nullc.cpp:581–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579#ifndef NULLC_NO_EXECUTOR
580
581void nullcThrowError(const char* error, ...)
582{
583 using namespace NULLC;
584 NULLC_CHECK_INITIALIZED((void)0);
585
586 va_list args;
587 va_start(args, error);
588
589 char buf[1024];
590
591 vsnprintf(buf, 1024, error, args);
592 buf[1024 - 1] = '\0';
593
594 if(currExec == NULLC_VM)
595 {
596 executor->Stop(buf);
597 }else if(currExec == NULLC_X86){
598#ifdef NULLC_BUILD_X86_JIT
599 executorX86->Stop(buf);
600#endif
601 }
602}
603
604nullres nullcCallFunction(NULLCFuncPtr ptr, ...)
605{

Callers 15

AllocObjectMethod · 0.70
AllocArrayMethod · 0.70
AssertMethod · 0.70
Assert2Method · 0.70
ReplaceObjectMethod · 0.70
SwapObjectsMethod · 0.70
CompareObjectsMethod · 0.70
FunctionRedirectMethod · 0.70
AutoArrayAssignMethod · 0.70
AutoArrayAssignRevMethod · 0.70
AutoArrayIndexMethod · 0.70
AutoArrayMethod · 0.70

Calls 1

StopMethod · 0.45

Tested by 1

RunInterfaceTestsFunction · 0.40