mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-24 13:35:43 +08:00
✨ append code size from u32 to u64
This commit is contained in:
@@ -27,11 +27,10 @@ const char* opname[] = {
|
||||
"mcallv", "mcallh", "ret "
|
||||
};
|
||||
|
||||
void codestream::set(
|
||||
const f64* number_list,
|
||||
const std::string* string_list,
|
||||
const nasal_builtin_table* native_table,
|
||||
const std::string* file_list) {
|
||||
void codestream::set(const f64* number_list,
|
||||
const std::string* string_list,
|
||||
const nasal_builtin_table* native_table,
|
||||
const std::string* file_list) {
|
||||
const_number = number_list;
|
||||
const_string = string_list;
|
||||
natives = native_table;
|
||||
@@ -110,6 +109,8 @@ void codestream::dump(std::ostream& out) const {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// if file list is loaded, dump file location info
|
||||
if (files) {
|
||||
out << " (" << files[code.fidx] << ":" << code.line << ")";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user