new header for auxiliar functions.

This commit is contained in:
Roberto Ierusalimschy 1997-03-18 12:30:50 -03:00
parent eea734aa88
commit fa08b42dd8
1 changed files with 23 additions and 0 deletions

23
auxlib.h Normal file
View File

@ -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