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

VM opcode snippet for setting an INI value (OP_INI_SET). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for setting an INI value (OP_INI_SET).

Opcode: OP_INI_SET Stack: [value:any] [key:string] [section:string] [handle:int] -> [ok:int]

Behavior

  • Pops value, key, section, and handle. Converts the value to a string using value_to_string_alloc() and stores it under "section:key" (and a dotted fallback) via dictionary_set().
  • Pushes 1 on success, 0 on failure (invalid args/handle or allocation fail).

Errors

  • No VM exception is thrown; failures return 0.

Definition in file set.c.