Fix missing return statements in Lua code

This commit is contained in:
William S Fulton 2014-03-14 23:58:15 +00:00
commit 9c1bd797b9

View file

@ -643,7 +643,7 @@ SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace
when function is called). when function is called).
Function always returns newly registered table on top of the stack. Function always returns newly registered table on top of the stack.
*/ */
SWIGINTERN int SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg) SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg)
{ {
/* 1 argument - table on the top of the stack */ /* 1 argument - table on the top of the stack */
int begin = lua_gettop(L); int begin = lua_gettop(L);
@ -960,8 +960,8 @@ SWIGINTERN int SWIG_Lua_class_set(lua_State *L)
lua_error(L); lua_error(L);
} else { } else {
assert(ret==0); assert(ret==0);
return 0;
} }
return 0;
} }
/* the class.destruct method called by the interpreter */ /* the class.destruct method called by the interpreter */