diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
commit | c31aa863ac29fad5bb3f44c4e08640f877b65f25 (patch) | |
tree | 3eb3fb1dcb50a3b1beefaece33aba00e572e5ad6 /lauxlib.h | |
parent | ff08b0f4069e322ec4c2b02aa5553424227357ba (diff) | |
download | lua-c31aa863ac29fad5bb3f44c4e08640f877b65f25.tar.gz lua-c31aa863ac29fad5bb3f44c4e08640f877b65f25.tar.bz2 lua-c31aa863ac29fad5bb3f44c4e08640f877b65f25.zip |
Auxiliar functions for building Lua libraries
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 | ||