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

VM opcode snippet for reading an integer from INI (OP_INI_GET_INT). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for reading an integer from INI (OP_INI_GET_INT).

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

Behavior

  • Pops default, key, section, and handle; looks up "section:key" (and dotted fallback) and attempts to parse as base-10 integer using strtol().
  • If lookup or parsing fails, returns the provided default.

Errors

  • Invalid handle/args produce the default; no VM exception is raised.

Definition in file get_int.c.