equal
deleted
inserted
replaced
22 #include "lstring.h" |
22 #include "lstring.h" |
23 #include "ltable.h" |
23 #include "ltable.h" |
24 #include "ltm.h" |
24 #include "ltm.h" |
25 |
25 |
26 |
26 |
27 #define state_size(x) (sizeof(x) + LUAI_EXTRASPACE) |
27 #define state_size(x) (sizeof(x) + LUAI_EXTRASPACE) |
28 #define fromstate(l) (cast(lu_byte *, (l)) - LUAI_EXTRASPACE) |
28 #define fromstate(l) (cast(lu_byte *, (l)) - LUAI_EXTRASPACE) |
29 #define tostate(l) (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE)) |
29 #define tostate(l) (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE)) |
30 |
30 |
31 |
31 |
32 /* |
32 /* |
33 ** Main thread combines a thread state and the global state |
33 ** Main thread combines a thread state and the global state |