dependency cleanup

This commit is contained in:
Glenn Maynard
2005-05-29 03:47:40 +00:00
parent 9a224f43fd
commit c724b4ad53
3 changed files with 6 additions and 14 deletions
-6
View File
@@ -20,12 +20,6 @@ inline bool MyLua_checkboolean (lua_State *L, int 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>
struct RegType
{
+1 -8
View File
@@ -1,14 +1,7 @@
#ifndef LUA_FUNCTIONS_H
#define LUA_FUNCTIONS_H
#include "LuaBinding.h"
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include "LuaManager.h"
/* Linked list of functions we make available to Lua. */
struct LuaFunctionList
+5
View File
@@ -159,6 +159,11 @@ namespace LuaHelpers
class Register##Fn { public: Register##Fn() { LuaManager::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
/*