Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
save.c File Reference

VM opcode snippet for saving an INI dictionary to a file (OP_INI_SAVE). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for saving an INI dictionary to a file (OP_INI_SAVE).

Opcode: OP_INI_SAVE Stack: [path:string] [handle:int] -> [ok:int]

Behavior

  • Pops a path and a handle. If the handle is valid, opens the path for writing and dumps the dictionary in INI format. Pushes 1 on success, otherwise 0.

Errors

  • Failing fopen() or invalid handle simply return 0; no exception is thrown.

Definition in file save.c.