summaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lauxlib.h b/lauxlib.h
index ae043322..4fe65c99 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.4 1997/12/09 13:35:19 roberto Exp roberto $ 2** $Id: lauxlib.h,v 1.5 1997/12/17 20:48:58 roberto Exp roberto $
3** Auxiliar functions for building Lua libraries 3** Auxiliar functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -17,8 +17,12 @@ struct luaL_reg {
17 lua_CFunction func; 17 lua_CFunction func;
18}; 18};
19 19
20
21#define luaL_arg_check(cond,numarg,extramsg) if (!(cond)) \
22 luaL_argerror(numarg,extramsg)
23
20void luaL_openlib (struct luaL_reg *l, int n); 24void luaL_openlib (struct luaL_reg *l, int n);
21void luaL_arg_check (int cond, int numarg, char *extramsg); 25void luaL_argerror (int numarg, char *extramsg);
22char *luaL_check_string (int numArg); 26char *luaL_check_string (int numArg);
23char *luaL_opt_string (int numArg, char *def); 27char *luaL_opt_string (int numArg, char *def);
24double luaL_check_number (int numArg); 28double luaL_check_number (int numArg);