diff lib/swig/swigwin-2.0.11/UIControlModule_wrap.cxx @ 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 e78fa9082174
children
line wrap: on
line diff
--- a/lib/swig/swigwin-2.0.11/UIControlModule_wrap.cxx	Thu Nov 21 14:08:35 2013 +0200
+++ b/lib/swig/swigwin-2.0.11/UIControlModule_wrap.cxx	Fri Nov 22 10:34:22 2013 +0200
@@ -725,12 +725,13 @@
  * and includes code for managing global variables and pointer
  * type checking.
  * ----------------------------------------------------------------------------- */
-
+ 
+#include "lib/lua/lua.h"
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include "..\..\lua\lua.h"
+//#include "lua.h"
 //#include "lauxlib.h"
 #include <stdlib.h>  /* for malloc */
 #include <assert.h>  /* for a few sanity tests */
@@ -1220,7 +1221,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));
@@ -1244,11 +1245,11 @@
 
   /* clear stack - remove metatble */
   lua_pop(L,1);
- return 0;
+
 }
 
 /* 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);
@@ -1275,7 +1276,6 @@
 
   lua_setmetatable(L,-2); /* set metatable */
   lua_rawset(L,-3); /* add namespace to module table */
-return 0;
 }
 /* -----------------------------------------------------------------------------
  * global variable support code: classes
@@ -1882,7 +1882,7 @@
 }
 
 
-#include "..\..\..\NewUI\Core\UIControl.h"
+#include "UIControl.h"
 
 #ifdef __cplusplus
 extern "C" {