diff options
| -rw-r--r-- | lauxlib.c | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.17 1999/03/11 18:59:19 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.18 1999/08/16 20:52:00 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -35,11 +35,8 @@ void luaL_argerror (int numarg, const char *extramsg) { | |||
| 35 | numarg -= lua_nups(f); | 35 | numarg -= lua_nups(f); |
| 36 | if (funcname == NULL) | 36 | if (funcname == NULL) |
| 37 | funcname = "?"; | 37 | funcname = "?"; |
| 38 | if (extramsg == NULL) | 38 | luaL_verror("bad argument #%d to function `%.50s' (%.100s)", |
| 39 | luaL_verror("bad argument #%d to function `%.50s'", numarg, funcname); | 39 | numarg, funcname, extramsg); |
| 40 | else | ||
| 41 | luaL_verror("bad argument #%d to function `%.50s' (%.100s)", | ||
| 42 | numarg, funcname, extramsg); | ||
| 43 | } | 40 | } |
| 44 | 41 | ||
| 45 | const char *luaL_check_lstr (int numArg, long *len) { | 42 | const char *luaL_check_lstr (int numArg, long *len) { |
