aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-25 18:07:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-25 18:07:26 -0300
commit6a853fcb8b9e333d768c739c36c99b144bbde607 (patch)
tree5645e5fbe3a43f15044591be30c5d4607cb7357c /lauxlib.c
parent31bea2190b25e5b6687d92d807af522378168bfa (diff)
downloadlua-6a853fcb8b9e333d768c739c36c99b144bbde607.tar.gz
lua-6a853fcb8b9e333d768c739c36c99b144bbde607.tar.bz2
lua-6a853fcb8b9e333d768c739c36c99b144bbde607.zip
details (from lhf)
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lauxlib.c b/lauxlib.c
index c8c1f3d6..37931dc6 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -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