mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
🚀 add lib function exit() and add test file watchdog.nas to run the nasal file when it is changed.
This commit is contained in:
@@ -61,6 +61,11 @@ var floor=func(val){
|
||||
return __floor(val);
|
||||
}
|
||||
|
||||
# exit using std::exit
|
||||
var exit=func(val=-1){
|
||||
return __exit(val);
|
||||
}
|
||||
|
||||
# abort using std::abort
|
||||
var abort=func(){
|
||||
__abort();
|
||||
|
||||
Reference in New Issue
Block a user