|
|
|
@@ -281,14 +281,16 @@ proc print(Lisp_Object* node, bool print_quotes = false, FILE* file = stdout) -> |
|
|
|
|
|
|
|
|
|
|
|
proc print_error_location() -> void { |
|
|
|
// if (error->location) { |
|
|
|
// printf("%s (line %d, position %d)", |
|
|
|
// Memory::get_c_str(error->location->file), |
|
|
|
// error->location->line, |
|
|
|
// error->location->column); |
|
|
|
// } else { |
|
|
|
// printf("no source code location avaliable"); |
|
|
|
// } |
|
|
|
if (current_source_code) { |
|
|
|
printf("%s (line %d, position %d) code:" console_red "\n ", |
|
|
|
Memory::get_c_str( |
|
|
|
current_source_code->sourceCodeLocation->file), |
|
|
|
current_source_code->sourceCodeLocation->line, |
|
|
|
current_source_code->sourceCodeLocation->column); |
|
|
|
print(current_source_code); |
|
|
|
} else { |
|
|
|
printf("no source code location avaliable"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
proc log_error() -> void { |
|
|
|
|