| 18 | #include "Executor_Common.h" |
| 19 | |
| 20 | void 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 | |
| 34 | jmp_buf CodeInfo::errorHandler; |
| 35 | ////////////////////////////////////////////////////////////////////////// |
no test coverage detected