diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.12 1998/06/19 16:14:09 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.13 1998/09/07 18:59:59 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 | */ |
@@ -10,9 +10,10 @@ | |||
10 | #include <string.h> | 10 | #include <string.h> |
11 | 11 | ||
12 | /* Please Notice: This file uses only the official API of Lua | 12 | /* Please Notice: This file uses only the official API of Lua |
13 | ** Any function declared here could be written as an application | 13 | ** Any function declared here could be written as an application function. |
14 | ** function. With care, these functions can be used by other libraries. | 14 | ** With care, these functions can be used by other libraries. |
15 | */ | 15 | */ |
16 | |||
16 | #include "lauxlib.h" | 17 | #include "lauxlib.h" |
17 | #include "lua.h" | 18 | #include "lua.h" |
18 | #include "luadebug.h" | 19 | #include "luadebug.h" |
@@ -33,7 +34,7 @@ void luaL_argerror (int numarg, char *extramsg) { | |||
33 | lua_getobjname(f, &funcname); | 34 | lua_getobjname(f, &funcname); |
34 | numarg -= lua_nups(f); | 35 | numarg -= lua_nups(f); |
35 | if (funcname == NULL) | 36 | if (funcname == NULL) |
36 | funcname = "???"; | 37 | funcname = "(unknown)"; |
37 | if (extramsg == NULL) | 38 | if (extramsg == NULL) |
38 | luaL_verror("bad argument #%d to function `%.50s'", numarg, funcname); | 39 | luaL_verror("bad argument #%d to function `%.50s'", numarg, funcname); |
39 | else | 40 | else |