summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtri <badshah400@gmail.com>2013-10-01 01:28:26 +0530
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-02-08 14:30:34 +0000
commit4e9ee78d3eace3f234a3fd5e08e410bb3ca092a5 (patch)
tree2612611051baf7ed52d6769ef76b9b246769a605
parent80b108eb70229680ad63daa7267d74ccc342dd2c (diff)
downloadswig-4e9ee78d3eace3f234a3fd5e08e410bb3ca092a5.tar.gz
Lua: Fix void return for non-void functions
Commit #c3f3880d caused the functions SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) and SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) to return void when int returns were expected resulting in the build failures for plplot's lua bindings for example. This commit fixes the issue. Closes #92
-rw-r--r--Lib/lua/luarun.swg3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lua/luarun.swg b/Lib/lua/luarun.swg
index 4d851bdb1..8485ed499 100644
--- a/Lib/lua/luarun.swg
+++ b/Lib/lua/luarun.swg
@@ -524,7 +524,7 @@ SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace*
/* clear stack - remove metatble */
lua_pop(L,1);
-
+ return 0;
}
/* helper function. creates namespace table and add it to module table */
@@ -555,6 +555,7 @@ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns)
lua_setmetatable(L,-2); /* set metatable */
lua_rawset(L,-3); /* add namespace to module table */
+ return 0;
}
/* -----------------------------------------------------------------------------
* global variable support code: classes