diff lib/swig/swigwin-2.0.11/Lib/lua/luarun.swg @ 2037:7a9477135943

Renamed Math.h -> OurMath.h (file resolution was sometimes ambiguous) Added custom pre-compile build step (.swig -> .cxx)
author Nomad
date Fri, 22 Nov 2013 10:34:22 +0200
parents b3009adc0e2f
children
line wrap: on
line diff
--- a/lib/swig/swigwin-2.0.11/Lib/lua/luarun.swg	Thu Nov 21 14:08:35 2013 +0200
+++ b/lib/swig/swigwin-2.0.11/Lib/lua/luarun.swg	Fri Nov 22 10:34:22 2013 +0200
@@ -5,13 +5,14 @@
  * and includes code for managing global variables and pointer
  * type checking.
  * ----------------------------------------------------------------------------- */
-
+ 
+#include "lib/lua/lua.h"
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include "lua.h"
-#include "lauxlib.h"
+//#include "lua.h"
+//#include "lauxlib.h"
 #include <stdlib.h>  /* for malloc */
 #include <assert.h>  /* for a few sanity tests */
 
@@ -500,7 +501,7 @@
 SWIGINTERN void  SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration
 
 /* helper function - register namespace methods and attributes into namespace */
-SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns)
+SWIGINTERN void SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns)
 {
   int i = 0;
   assert(lua_istable(L,-1));
@@ -528,7 +529,7 @@
 }
 
 /* helper function. creates namespace table and add it to module table */
-SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns)
+SWIGINTERN void SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns)
 {
   assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */
   lua_checkstack(L,5);