mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
✨ show function entry file location
in call trace info
This commit is contained in:
@@ -129,7 +129,8 @@ void vm::function_detail_info(const nas_func& func) {
|
||||
std::clog << const_string[func.dynamic_parameter_index] << "...";
|
||||
}
|
||||
std::clog << ") ";
|
||||
std::clog << "{entry: 0x" << std::hex << func.entry << std::dec << "}";
|
||||
const auto& code = bytecode[func.entry];
|
||||
std::clog << "{ entry: " << files[code.fidx] << ":" << code.line << " }";
|
||||
}
|
||||
|
||||
void vm::function_call_trace() {
|
||||
|
||||
Reference in New Issue
Block a user