diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/common.h b/src/common.h index 63962db..2e6a60b 100644 --- a/src/common.h +++ b/src/common.h @@ -1,3 +1,5 @@ +/** @file */ + #ifndef HONEY_COMMON_H #define HONEY_COMMON_H @@ -101,6 +103,8 @@ typedef enum { HONEY_FUNC, HONEY_TABLE, HONEY_NIL, + HONEY_USERDATA, + HONEY_LIGHTUSERDATA, HONEY_ANY } honey_lua_type; @@ -120,14 +124,15 @@ typedef struct honey_lua_element { char* name; honey_lua_type type; union { - int integer; - double number; - char* string; - int (*function)(lua_State*); - struct { - int n_elements; - struct honey_lua_element* elements; - } table; + int integer; + double number; + char* string; + int (*function)(lua_State*); + struct { + int n_elements; + struct honey_lua_element* elements; + } table; + void* pointer; } data; } honey_lua_element; |