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

VM opcode snippet for reading a string from INI (OP_INI_GET_STRING). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for reading a string from INI (OP_INI_GET_STRING).

Opcode: OP_INI_GET_STRING Stack: [default:string] [key:string] [section:string] [handle:int] -> [out:string]

Behavior

  • Pops default string, key, section, and handle; looks up "section:key" and a dotted fallback. If not found, uses the provided default.
  • Pushes the resulting string (copied into a VM Value).

Errors

  • Invalid handle/args result in pushing the default (or empty string).

Definition in file get_string.c.