misc/liblua/lfunc.h
branchsdl2transition
changeset 11342 ed5a6478e710
parent 10017 de822cd3df3a
equal deleted inserted replaced
11340:31570b766315 11342:ed5a6478e710
     9 
     9 
    10 
    10 
    11 #include "lobject.h"
    11 #include "lobject.h"
    12 
    12 
    13 
    13 
    14 #define sizeCclosure(n)	(cast(int, sizeof(CClosure)) + \
    14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
    15                          cast(int, sizeof(TValue)*((n)-1)))
    15                          cast(int, sizeof(TValue)*((n)-1)))
    16 
    16 
    17 #define sizeLclosure(n)	(cast(int, sizeof(LClosure)) + \
    17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
    18                          cast(int, sizeof(TValue *)*((n)-1)))
    18                          cast(int, sizeof(TValue *)*((n)-1)))
    19 
    19 
    20 
    20 
    21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
    21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
    22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
    22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);