C结构中lua的数据结构
/*
** Union of all Lua values
*/
typedef union {
GCObject *gc;
void *p;
lua_Number n;
int b;
} Value;
所有注册到lua的函数都具有相同的原型,该原型就是定义在lua.h中的lua_CFunction
C结构中lua的数据结构
/*
** Union of all Lua values
*/
typedef union {
GCObject *gc;
void *p;
lua_Number n;
int b;
} Value;
所有注册到lua的函数都具有相同的原型,该原型就是定义在lua.h中的lua_CFunction