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

Function ThrowError

NULLC/Compiler.cpp:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "Executor_Common.h"
19
20void ThrowError(const char* pos, const char* err, ...)
21{
22 char errorText[4096];
23
24 va_list args;
25 va_start(args, err);
26
27 vsnprintf(errorText, 4096, err, args);
28 errorText[4096-1] = '\0';
29
30 CodeInfo::lastError = CompilerError(errorText, pos);
31 longjmp(CodeInfo::errorHandler, 1);
32}
33
34jmp_buf CodeInfo::errorHandler;
35//////////////////////////////////////////////////////////////////////////

Callers 15

ChooseBinaryOpResultTypeFunction · 0.85
NodeUnaryOpMethod · 0.85
NodeVariableSetMethod · 0.85
NodeVariableModifyMethod · 0.85
NodeArrayIndexMethod · 0.85
NeutralizeMethod · 0.85
NodePreOrPostOpMethod · 0.85
NodeBinaryOpMethod · 0.85
NodeIfElseExprMethod · 0.85
NodeForExprMethod · 0.85
NodeWhileExprMethod · 0.85
NodeDoWhileExprMethod · 0.85

Calls 1

CompilerErrorClass · 0.85

Tested by

no test coverage detected