载入中...
搜索中...
未找到
ScriptError.h
浏览该文件的文档.
Definition ScriptError.cpp:10
void clearLastScriptError(HSQUIRRELVM vm)
Drops any recorded error for a VM.
Definition ScriptError.cpp:226
const ScriptErrorContext * peekLastScriptError(HSQUIRRELVM vm)
Peeks at the last recorded error for a VM without clearing it.
Definition ScriptError.cpp:220
bool parseCompileError(const std::string &text, std::string *source, int *line, int *column, std::string *message)
Parses the ssq compile message "Compile error at source:line:column msg".
Definition ScriptError.cpp:120
std::string formatStackTrace(const std::vector< ScriptFrame > &frames)
Formats just the call-stack portion of a context.
Definition ScriptError.cpp:175
ScriptErrorContext captureCompileError(HSQUIRRELVM vm)
Captures the last compilation error recorded by the VM.
Definition ScriptError.cpp:103
std::string formatScriptError(const ScriptErrorContext &ctx)
Formats a context into a human-readable multi-line report.
Definition ScriptError.cpp:189
std::string sourceLineText(const std::string &sourceText, int line)
Extracts one 1-based line from script source text.
Definition ScriptError.cpp:159
ScriptErrorContext takeLastScriptError(HSQUIRRELVM vm)
Consumes and clears the last recorded error for a VM.
Definition ScriptError.cpp:211
void setLastScriptError(HSQUIRRELVM vm, ScriptErrorContext ctx)
Records the last error for a VM (thread-local, synchronous consumers).
Definition ScriptError.cpp:206
ScriptErrorContext captureScriptError(HSQUIRRELVM vm)
Captures the pending runtime error from inside the Squirrel error handler.
Definition ScriptError.cpp:80
Structured snapshot of a script error: message, throw site and stack.
Definition ScriptError.h:25
One call-stack frame captured while the script error is still live.
Definition ScriptError.h:13