| 59 | |
| 60 | |
| 61 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { |
| 62 | const char *msg = lua_pushfstring(L, "%s expected, got %s", |
| 63 | tname, luaL_typename(L, narg)); |
| 64 | return luaL_argerror(L, narg, msg); |
| 65 | } |
| 66 | |
| 67 | |
| 68 | static void tag_error (lua_State *L, int narg, int tag) { |
no test coverage detected