diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.8 1998/06/18 16:57:03 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.9 1998/06/19 16:14:09 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 | */ |
@@ -28,7 +28,11 @@ char *luaL_check_lstr (int numArg, long *len); | |||
28 | #define luaL_opt_string(n, d) (luaL_opt_lstr((n), (d), NULL)) | 28 | #define luaL_opt_string(n, d) (luaL_opt_lstr((n), (d), NULL)) |
29 | char *luaL_opt_lstr (int numArg, char *def, long *len); | 29 | char *luaL_opt_lstr (int numArg, char *def, long *len); |
30 | double luaL_check_number (int numArg); | 30 | double luaL_check_number (int numArg); |
31 | #define luaL_check_int(n) ((int)luaL_check_number(n)) | ||
32 | #define luaL_check_long(n) ((long)luaL_check_number(n)) | ||
31 | double luaL_opt_number (int numArg, double def); | 33 | double luaL_opt_number (int numArg, double def); |
34 | #define luaL_opt_int(n,d) ((int)luaL_opt_number(n,d)) | ||
35 | #define luaL_opt_long(n,d) ((long)luaL_opt_number(n,d)) | ||
32 | lua_Object luaL_functionarg (int arg); | 36 | lua_Object luaL_functionarg (int arg); |
33 | lua_Object luaL_tablearg (int arg); | 37 | lua_Object luaL_tablearg (int arg); |
34 | lua_Object luaL_nonnullarg (int numArg); | 38 | lua_Object luaL_nonnullarg (int numArg); |