misc/liblua/lstate.c
branchhedgeroid
changeset 15515 7030706266df
parent 10017 de822cd3df3a
equal deleted inserted replaced
7861:bc7b6aa5d67a 15515:7030706266df
    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