diff options
author | Atri <badshah400@gmail.com> | 2013-10-01 01:28:26 +0530 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-10-12 17:51:49 +0100 |
commit | 1a7f731d60bef65898d7b5c35d0e676e7e19ca81 (patch) | |
tree | 3c6c43a29d4ba5f5fb1d60c8b875d447b294996f | |
parent | 3b08385dec715010da541f59a6bd68dedb07be82 (diff) | |
download | swig-1a7f731d60bef65898d7b5c35d0e676e7e19ca81.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.swg | 3 |
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 |