dependency cleanup
This commit is contained in:
@@ -20,12 +20,6 @@ inline bool MyLua_checkboolean (lua_State *L, int numArg)
|
|||||||
return !!lua_toboolean(L,numArg);
|
return !!lua_toboolean(L,numArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SArg(n) (luaL_checkstring(L,n))
|
|
||||||
#define IArg(n) (luaL_checkint(L,n))
|
|
||||||
#define BArg(n) (MyLua_checkboolean(L,n))
|
|
||||||
#define FArg(n) ((float) luaL_checknumber(L,n))
|
|
||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct RegType
|
struct RegType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
#ifndef LUA_FUNCTIONS_H
|
#ifndef LUA_FUNCTIONS_H
|
||||||
#define LUA_FUNCTIONS_H
|
#define LUA_FUNCTIONS_H
|
||||||
|
|
||||||
#include "LuaBinding.h"
|
#include "LuaManager.h"
|
||||||
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include <lua.h>
|
|
||||||
#include <lualib.h>
|
|
||||||
#include <lauxlib.h>
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Linked list of functions we make available to Lua. */
|
/* Linked list of functions we make available to Lua. */
|
||||||
struct LuaFunctionList
|
struct LuaFunctionList
|
||||||
|
|||||||
@@ -159,6 +159,11 @@ namespace LuaHelpers
|
|||||||
class Register##Fn { public: Register##Fn() { LuaManager::Register( Fn ); } }; \
|
class Register##Fn { public: Register##Fn() { LuaManager::Register( Fn ); } }; \
|
||||||
static Register##Fn register##Fn;
|
static Register##Fn register##Fn;
|
||||||
|
|
||||||
|
#define SArg(n) (luaL_checkstring(L,n))
|
||||||
|
#define IArg(n) (luaL_checkint(L,n))
|
||||||
|
#define BArg(n) (MyLua_checkboolean(L,n))
|
||||||
|
#define FArg(n) ((float) luaL_checknumber(L,n))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user