diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 | |||
20 | void luaL_openlib (struct luaL_reg *l, int n); | 24 | void luaL_openlib (struct luaL_reg *l, int n); |
21 | void luaL_arg_check (int cond, int numarg, char *extramsg); | 25 | void luaL_argerror (int numarg, char *extramsg); |
22 | char *luaL_check_string (int numArg); | 26 | char *luaL_check_string (int numArg); |
23 | char *luaL_opt_string (int numArg, char *def); | 27 | char *luaL_opt_string (int numArg, char *def); |
24 | double luaL_check_number (int numArg); | 28 | double luaL_check_number (int numArg); |