diff options
Diffstat (limited to 'src/deep.h')
-rw-r--r-- | src/deep.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -24,18 +24,18 @@ typedef struct s_Universe Universe; | |||
24 | 24 | ||
25 | enum eLookupMode | 25 | enum eLookupMode |
26 | { | 26 | { |
27 | eLM_LaneBody, // send the lane body directly from the source to the destination lane | 27 | eLM_LaneBody, // send the lane body directly from the source to the destination lane |
28 | eLM_ToKeeper, // send a function from a lane to a keeper state | 28 | eLM_ToKeeper, // send a function from a lane to a keeper state |
29 | eLM_FromKeeper // send a function from a keeper state to a lane | 29 | eLM_FromKeeper // send a function from a keeper state to a lane |
30 | }; | 30 | }; |
31 | typedef enum eLookupMode LookupMode; | 31 | typedef enum eLookupMode LookupMode; |
32 | 32 | ||
33 | enum eDeepOp | 33 | enum eDeepOp |
34 | { | 34 | { |
35 | eDO_new, | 35 | eDO_new, |
36 | eDO_delete, | 36 | eDO_delete, |
37 | eDO_metatable, | 37 | eDO_metatable, |
38 | eDO_module, | 38 | eDO_module, |
39 | }; | 39 | }; |
40 | typedef enum eDeepOp DeepOp; | 40 | typedef enum eDeepOp DeepOp; |
41 | 41 | ||
@@ -49,11 +49,11 @@ static DECLARE_CONST_UNIQUE_KEY( DEEP_VERSION, 0xB4B0119C10642B29); | |||
49 | // should be used as header for full userdata | 49 | // should be used as header for full userdata |
50 | struct s_DeepPrelude | 50 | struct s_DeepPrelude |
51 | { | 51 | { |
52 | DECLARE_UNIQUE_KEY( magic); // must be filled by the Deep userdata idfunc that allocates it on eDO_new operation | 52 | DECLARE_UNIQUE_KEY( magic); // must be filled by the Deep userdata idfunc that allocates it on eDO_new operation |
53 | // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the idfunc | 53 | // when stored in a keeper state, the full userdata doesn't have a metatable, so we need direct access to the idfunc |
54 | luaG_IdFunction idfunc; | 54 | luaG_IdFunction idfunc; |
55 | // data is destroyed when refcount is 0 | 55 | // data is destroyed when refcount is 0 |
56 | volatile int refcount; | 56 | volatile int refcount; |
57 | }; | 57 | }; |
58 | typedef struct s_DeepPrelude DeepPrelude; | 58 | typedef struct s_DeepPrelude DeepPrelude; |
59 | 59 | ||