misc/liblua/lstate.c
changeset 10017 de822cd3df3a
parent 3697 d5b30d6373fc
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    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