Go to the source code of this file.
Classes | |
struct | uscript::ObjString |
struct | uscript::ObjTInstance |
struct | uscript::Value |
Namespaces | |
uscript | |
Enumerations | |
enum | uscript::ValueType { uscript::VAL_BOOL, uscript::VAL_NIL, uscript::VAL_NUMBER, uscript::VAL_INTEGER, uscript::VAL_OBJ_STRING, uscript::VAL_OBJ_TINSTANCE } |
#define BOOL_VAL | ( | value | ) | ((uscript::Value){ uscript::VAL_BOOL, { .boolean = value }}) |
#define INTEGER_VAL | ( | value | ) | ((uscript::Value){ uscript::VAL_INTEGER, { .integer = value }}) |
#define IS_BOOL | ( | value | ) | ((value).val == uscript::VAL_BOOL) |
#define IS_INTEGER | ( | value | ) | ((value).val == uscript::VAL_INTEGER) |
#define IS_NIL | ( | value | ) | ((value).val == uscript::VAL_NIL) |
#define IS_NUMBER | ( | value | ) | ((value).val == uscript::VAL_NUMBER) |
#define IS_STRING | ( | value | ) | ((value).val == uscript::VAL_OBJ_STRING) |
#define IS_TINSTANCE | ( | value | ) | ((value).val == uscript::VAL_OBJ_TINSTANCE) |
#define NIL_VAL ((uscript::Value){ uscript::VAL_NIL, { .integer = 0 }}) |
#define NUMBER_VAL | ( | value | ) | ((uscript::Value){ uscript::VAL_NUMBER, { .number = value }}) |
#define STRING_VAL | ( | value | ) | ((uscript::Value){ uscript::VAL_OBJ_STRING, { .string = (uscript::ObjString){ value } }}) |
#define TINSTANCE_VAL | ( | value | ) | ((uscript::Value){ uscript::VAL_OBJ_TINSTANCE, { .tinst = value }}) |