![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
VM opcode snippet for reading an integer from INI (OP_INI_GET_INT). 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(outi)) | |
Variables | |
| case | OP_INI_GET_INT |
| Value | vkey = pop_value(vm) |
| Value | vsec = pop_value(vm) |
| Value | vh = pop_value(vm) |
| int | def = (vdef.type == VAL_INT) ? (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 | outi = def |
| break | |
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
Errors
Definition in file get_int.c.
| free_value | ( | vdef | ) |
| free_value | ( | vh | ) |
| free_value | ( | vkey | ) |
| free_value | ( | vsec | ) |
| const char* key = (vkey.type == VAL_STRING) ? vkey.s : NULL |
| const char* sec = (vsec.type == VAL_STRING) ? vsec.s : NULL |