diff options
Diffstat (limited to 'src/lua_typeerror.c')
-rw-r--r-- | src/lua_typeerror.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lua_typeerror.c b/src/lua_typeerror.c deleted file mode 100644 index d6a3d76..0000000 --- a/src/lua_typeerror.c +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #include "lua_typeerror.h" | ||
2 | #include "lua.h" | ||
3 | #include "lauxlib.h" | ||
4 | |||
5 | int luaL_typeerror (lua_State *L, int narg, const char *tname) | ||
6 | { | ||
7 | const char *msg = lua_pushfstring(L, "%s expected, got %s",tname, luaL_typename(L, narg)); | ||
8 | return luaL_argerror(L, narg, msg); | ||
9 | } | ||
10 | |||