mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Remove unused function luaL_typerror().
This commit is contained in:
parent
9178451ef9
commit
d8f77cca64
@ -78,14 +78,6 @@ static int global_unload(lua_State *L) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LUA_VERSION_NUM > 501
|
|
||||||
int luaL_typerror (lua_State *L, int narg, const char *tname) {
|
|
||||||
const char *msg = lua_pushfstring(L, "%s expected, got %s",
|
|
||||||
tname, luaL_typename(L, narg));
|
|
||||||
return luaL_argerror(L, narg, msg);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
* Setup basic stuff.
|
* Setup basic stuff.
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
|
Loading…
Reference in New Issue
Block a user