31#ifndef SWORD25_LUABINDHELPER_H
32#define SWORD25_LUABINDHELPER_H
34#include "sword25/kernel/common.h"
36#include "common/lua/lua.h"
37#include "common/lua/lauxlib.h"
41#define lua_pushbooleancpp(L, b) (lua_pushboolean(L, b ? 1 : 0))
42#define lua_tobooleancpp(L, i) (lua_toboolean(L, i) != 0)
109 static void *my_checkudata(
lua_State *L,
int ud,
const char *tname);
Definition: luabindhelper.h:49
static bool addConstantsToLib(lua_State *L, const Common::String &libName, const lua_constant_reg *constants)
static Common::String tableDump(lua_State *L)
static bool setClassGCHandler(lua_State *L, const Common::String &className, lua_CFunction GCHandler)
static Common::String stackDump(lua_State *L)
static bool addFunctionsToLib(lua_State *L, const Common::String &libName, const luaL_reg *functions)
static bool addMethodsToClass(lua_State *L, const Common::String &className, const luaL_reg *methods)
Definition: luabindhelper.h:44