diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-09 13:09:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-09 13:09:53 -0200 |
commit | 9f043e801733b0a5019c4e6e2a72abaf9ad7c5b0 (patch) | |
tree | 54f1ac9c81b072567955e7399376eec5cd745218 /lauxlib.h | |
parent | 6ac047afc46cbee935587b5734ec37d2e667a598 (diff) | |
download | lua-9f043e801733b0a5019c4e6e2a72abaf9ad7c5b0.tar.gz lua-9f043e801733b0a5019c4e6e2a72abaf9ad7c5b0.tar.bz2 lua-9f043e801733b0a5019c4e6e2a72abaf9ad7c5b0.zip |
luaL_arg_check now is inlined
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); |