Added new opcode OP_ENV to provide an env() function to get environment variables from your OS.
This commit is contained in:
parent
f3b979c07f
commit
4345fc6f0c
6 changed files with 47 additions and 3 deletions
|
|
@ -110,7 +110,10 @@ typedef enum {
|
|||
|
||||
// file I/O
|
||||
OP_READ_FILE, // pops path string; pushes content string (or "")
|
||||
OP_WRITE_FILE // pops data string, path string; pushes 1/0
|
||||
OP_WRITE_FILE, // pops data string, path string; pushes 1/0
|
||||
|
||||
// OS
|
||||
OP_ENV // pops name string; pushes value string (or "")
|
||||
} OpCode;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue