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

Stub opcode implementations for INI support when FUN_WITH_INI is disabled. More...

Go to the source code of this file.

Functions

 free_value (vpath)
 fun_vm_fprintf (stderr, "Runtime error: INI support disabled (rebuild with -DFUN_WITH_INI=ON)\n")
 push_value (vm, make_int(0))
 free_value (vh)
 free_value (vsec)
 free_value (vkey)
 push_value (vm, make_string(""))
 free_value (vdef)
 push_value (vm, make_float(0.0))
 free_value (vval)

Variables

case OP_INI_LOAD
void vpath
 break
case OP_INI_FREE
case OP_INI_GET_STRING
Value vkey = pop_value(vm)
Value vsec = pop_value(vm)
Value vh = pop_value(vm)
case OP_INI_GET_INT
void vdef
case OP_INI_GET_DOUBLE
case OP_INI_GET_BOOL
case OP_INI_SET
case OP_INI_UNSET
case OP_INI_SAVE

Detailed Description

Stub opcode implementations for INI support when FUN_WITH_INI is disabled.

These cases are compiled into the VM dispatch when the INI feature is not enabled. Each opcode prints a descriptive runtime error and pushes a safe default (0, 0.0, or empty string) to keep execution proceeding without crashing.

Definition in file stubs.c.

Function Documentation

◆ free_value() [1/6]

free_value(vdef)

◆ free_value() [2/6]

free_value(vh)

◆ free_value() [3/6]

free_value(vkey)

◆ free_value() [4/6]

free_value(vpath)

◆ free_value() [5/6]

free_value(vsec)

◆ free_value() [6/6]

free_value(vval)

◆ fun_vm_fprintf()

fun_vm_fprintf(stderr,
"Runtime error: INI support disabled (rebuild with -DFUN_WITH_INI=ON)\n" )

◆ push_value() [1/3]

push_value(vm,
make_float(0.0) )

◆ push_value() [2/3]

push_value(vm,
make_int(0) )

◆ push_value() [3/3]

push_value(vm,
make_string("") )

Variable Documentation

◆ break

break

Definition at line 27 of file stubs.c.

◆ OP_INI_FREE

case OP_INI_FREE

Definition at line 31 of file stubs.c.

◆ OP_INI_GET_BOOL

case OP_INI_GET_BOOL

Definition at line 83 of file stubs.c.

◆ OP_INI_GET_DOUBLE

case OP_INI_GET_DOUBLE

Definition at line 69 of file stubs.c.

◆ OP_INI_GET_INT

case OP_INI_GET_INT

Definition at line 55 of file stubs.c.

◆ OP_INI_GET_STRING

case OP_INI_GET_STRING

Definition at line 40 of file stubs.c.

◆ OP_INI_LOAD

case OP_INI_LOAD

Definition at line 21 of file stubs.c.

◆ OP_INI_SAVE

case OP_INI_SAVE

Definition at line 124 of file stubs.c.

◆ OP_INI_SET

case OP_INI_SET

Definition at line 98 of file stubs.c.

◆ OP_INI_UNSET

case OP_INI_UNSET

Definition at line 112 of file stubs.c.

◆ vdef

void vdef

Definition at line 63 of file stubs.c.

◆ vh

Value vh = pop_value(vm)

Definition at line 44 of file stubs.c.

◆ vkey

Value vkey = pop_value(vm)

Definition at line 42 of file stubs.c.

◆ vpath

void vpath

Definition at line 23 of file stubs.c.

◆ vsec

Value vsec = pop_value(vm)

Definition at line 43 of file stubs.c.