mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
🚀 change cpp standard to c++14 & add command line colorful info output.
and fix a bug that program may crash if there's an error when coroutine is running
This commit is contained in:
+4
-1
@@ -389,7 +389,10 @@ nas_ref builtin_die(nas_ref* local,nasal_gc& gc)
|
||||
nas_ref str=local[1];
|
||||
if(str.type!=vm_str)
|
||||
return nas_err("die","\"str\" must be string");
|
||||
std::cerr<<"[vm] error: "<<str.str()<<'\n';
|
||||
std::cerr<<bold_cyan<<"[vm] "
|
||||
<<bold_red<<"error: "
|
||||
<<bold_white<<str.str()<<'\n'
|
||||
<<reset;
|
||||
return {vm_none};
|
||||
}
|
||||
nas_ref builtin_find(nas_ref* local,nasal_gc& gc)
|
||||
|
||||
Reference in New Issue
Block a user