mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
✨ add native function runtime.argv() to get command line arguments
This commit is contained in:
+4
-1
@@ -448,7 +448,10 @@ var runtime=
|
||||
{
|
||||
# do garbage collection manually.
|
||||
# carefully use it because using it frequently may make program running slower.
|
||||
gc: func(){return __builtin_gc;}
|
||||
gc: func(){return __builtin_gc;},
|
||||
|
||||
# command line arguments
|
||||
argv: func(){return __builtin_sysargv;}
|
||||
};
|
||||
|
||||
# important global constants
|
||||
|
||||
Reference in New Issue
Block a user