From fa08b42dd851ae945df9796438ac0565939a00f2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 18 Mar 1997 12:30:50 -0300 Subject: [PATCH] new header for auxiliar functions. --- auxlib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 auxlib.h diff --git a/auxlib.h b/auxlib.h new file mode 100644 index 00000000..9e2556c7 --- /dev/null +++ b/auxlib.h @@ -0,0 +1,23 @@ +/* +** $Id: $ +*/ + +#ifndef auxlib_h +#define auxlib_h + +#include "lua.h" + +struct luaL_reg { + char *name; + lua_CFunction func; +}; + +void luaL_openlib (struct luaL_reg *l, int n); +void luaL_arg_check(int cond, char *funcname, int numarg, char *extramsg); +char *luaL_check_string (int numArg, char *funcname); +char *luaL_opt_string (int numArg, char *def, char *funcname); +double luaL_check_number (int numArg, char *funcname); +double luaL_opt_number (int numArg, double def, char *funcname); +void luaL_verror (char *fmt, ...); + +#endif