![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
VM opcode snippet for reading a boolean from an INI dictionary (OP_INI_GET_BOOL). More...
Go to the source code of this file.
Functions | |
| if (d &&sec &&key) | |
| free_value (vdef) | |
| free_value (vkey) | |
| free_value (vsec) | |
| free_value (vh) | |
| push_value (vm, make_int(outb ? 1 :0)) | |
Variables | |
| case | OP_INI_GET_BOOL |
| Value | vkey = pop_value(vm) |
| Value | vsec = pop_value(vm) |
| Value | vh = pop_value(vm) |
| int | def = (vdef.type == VAL_INT || vdef.type == VAL_BOOL) ? (int)vdef.i : 0 |
| const char * | key = (vkey.type == VAL_STRING) ? vkey.s : NULL |
| const char * | sec = (vsec.type == VAL_STRING) ? vsec.s : NULL |
| int | h = (vh.type == VAL_INT) ? (int)vh.i : 0 |
| dictionary * | d = ini_get(h) |
| int | outb = def |
| break | |
VM opcode snippet for reading a boolean from an INI dictionary (OP_INI_GET_BOOL).
Included by vm.c when FUN_WITH_INI is enabled.
Opcode: OP_INI_GET_BOOL Stack: [default:int|bool] [key:string] [section:string] [handle:int] -> [out:int]
Behavior
Errors
Definition in file get_bool.c.
| free_value | ( | vdef | ) |
| free_value | ( | vh | ) |
| free_value | ( | vkey | ) |
| free_value | ( | vsec | ) |
Definition at line 45 of file get_bool.c.
| break |
Definition at line 96 of file get_bool.c.
Definition at line 43 of file get_bool.c.
Definition at line 39 of file get_bool.c.
| int h = (vh.type == VAL_INT) ? (int)vh.i : 0 |
Definition at line 42 of file get_bool.c.
| const char* key = (vkey.type == VAL_STRING) ? vkey.s : NULL |
Definition at line 40 of file get_bool.c.
| case OP_INI_GET_BOOL |
Definition at line 34 of file get_bool.c.
| int outb = def |
Definition at line 44 of file get_bool.c.
| const char* sec = (vsec.type == VAL_STRING) ? vsec.s : NULL |
Definition at line 41 of file get_bool.c.
Definition at line 38 of file get_bool.c.
Definition at line 36 of file get_bool.c.
Definition at line 37 of file get_bool.c.