载入中...
搜索中...
未找到
ScriptError.h
浏览该文件的文档.
62EVENGINE_API_FOUNDATION bool parseCompileError(const std::string& text, std::string* source, int* line, int* column,
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Definition BindingContracts.h:5
std::string formatScriptError(const ScriptErrorContext &ctx)
Formats a context into a human-readable multi-line report.
Definition ScriptError.cpp:200
void clearLastScriptError(HSQUIRRELVM vm)
Drops any recorded error for a VM.
Definition ScriptError.cpp:237
std::string sourceLineText(const std::string &sourceText, int line)
Extracts one 1-based line from script source text.
Definition ScriptError.cpp:170
ScriptErrorContext takeLastScriptError(HSQUIRRELVM vm)
Consumes and clears the last recorded error for a VM.
Definition ScriptError.cpp:222
std::string formatLastScriptError(HSQUIRRELVM vm)
Formats the last captured error for a VM without consuming it.
Definition ScriptError.cpp:242
ScriptErrorContext captureCompileError(HSQUIRRELVM vm)
Captures the last compilation error recorded by the VM.
Definition ScriptError.cpp:114
const ScriptErrorContext * peekLastScriptError(HSQUIRRELVM vm)
Peeks at the last recorded error for a VM without clearing it.
Definition ScriptError.cpp:231
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:131
void setLastScriptError(HSQUIRRELVM vm, ScriptErrorContext ctx)
Records the last error for a VM (thread-local, synchronous consumers).
Definition ScriptError.cpp:217
std::string formatStackTrace(const std::vector< ScriptFrame > &frames)
Formats just the call-stack portion of a context.
Definition ScriptError.cpp:186
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