diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lauxlib.h b/lauxlib.h new file mode 100644 index 00000000..9c616c2b --- /dev/null +++ b/lauxlib.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | ** $Id: $ | ||
3 | ** Auxiliar functions for building Lua libraries | ||
4 | ** See Copyright Notice in lua.h | ||
5 | */ | ||
6 | |||
7 | |||
8 | #ifndef auxlib_h | ||
9 | #define auxlib_h | ||
10 | |||
11 | |||
12 | #include "lua.h" | ||
13 | |||
14 | |||
15 | struct luaL_reg { | ||
16 | char *name; | ||
17 | lua_CFunction func; | ||
18 | }; | ||
19 | |||
20 | void luaL_openlib (struct luaL_reg *l, int n); | ||
21 | void luaL_arg_check(int cond, int numarg, char *extramsg); | ||
22 | char *luaL_check_string (int numArg); | ||
23 | char *luaL_opt_string (int numArg, char *def); | ||
24 | double luaL_check_number (int numArg); | ||
25 | double luaL_opt_number (int numArg, double def); | ||
26 | void luaL_verror (char *fmt, ...); | ||
27 | |||
28 | |||
29 | #endif | ||