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

VM opcode snippet for loading an INI file (OP_INI_LOAD). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for loading an INI file (OP_INI_LOAD).

Opcode: OP_INI_LOAD Stack: [path:string] -> [handle:int]

Behavior

  • Pops a filesystem path and attempts to parse it via iniparser_load().
  • On success, registers the resulting dictionary and pushes a positive handle. On failure, pushes 0.

Notes

  • The returned handle must later be released with OP_INI_FREE to avoid leaking dictionary objects.

Definition in file load.c.