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

VM opcode snippet for reading a floating-point value from INI (OP_INI_GET_DOUBLE). More...

Go to the source code of this file.

Detailed Description

VM opcode snippet for reading a floating-point value from INI (OP_INI_GET_DOUBLE).

Opcode: OP_INI_GET_DOUBLE Stack: [default:float|int] [key:string] [section:string] [handle:int] -> [out:float]

Behavior

  • Pops default, key, section, and handle; looks up "section:key" (and dotted fallback) and attempts to parse as double using strtod().
  • If lookup or parsing fails, pushes the provided default.

Errors

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

Definition in file get_double.c.