Skip to content

Commit 82ca050

Browse files
committed
More fixes
1 parent 4f6cd69 commit 82ca050

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

Source/LuaBridge/detail/CFunctions.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -883,10 +883,7 @@ inline int newindex_metamethod_simple(lua_State* L)
883883
const char* key = lua_tostring(L, 2);
884884

885885
if (! lua_istable(L, lua_upvalueindex(1)))
886-
{
887886
luaL_error(L, "no writable member '%s'", key);
888-
return 0;
889-
}
890887

891888
lua_pushvalue(L, 2); // Stack: key
892889
lua_rawget(L, lua_upvalueindex(1)); // Stack: setter | nil
@@ -900,7 +897,6 @@ inline int newindex_metamethod_simple(lua_State* L)
900897
}
901898

902899
luaL_error(L, "no writable member '%s'", key);
903-
return 0;
904900
}
905901
}
906902
else
@@ -911,10 +907,7 @@ inline int newindex_metamethod_simple(lua_State* L)
911907
const char* key = lua_tostring(L, 2);
912908

913909
if (! lua_istable(L, lua_upvalueindex(1)))
914-
{
915910
luaL_error(L, "no writable member '%s'", key);
916-
return 0;
917-
}
918911

919912
lua_pushvalue(L, 2); // Stack: key
920913
lua_rawget(L, lua_upvalueindex(1)); // Stack: setter | nil
@@ -927,7 +920,6 @@ inline int newindex_metamethod_simple(lua_State* L)
927920
}
928921

929922
luaL_error(L, "no writable member '%s'", key);
930-
return 0;
931923
}
932924
}
933925

@@ -955,7 +947,6 @@ inline int newindex_metamethod_simple(lua_State* L)
955947
}
956948

957949
luaL_error(L, "no writable member '%s'", key);
958-
return 0;
959950
}
960951

961952
//=================================================================================================

Source/LuaBridge/detail/Namespace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ class Namespace : public detail::Registrar
138138
s = s + message;
139139

140140
luaL_error(L, "%s", s.c_str());
141-
142-
return 0;
143141
}
144142
#endif
145143

0 commit comments

Comments
 (0)