|
|
|
/*
|
|
|
|
** $Id: lauxlib.h,v 1.3 1997/11/21 19:00:46 roberto Exp roberto $
|
|
|
|
** Auxiliar functions for building Lua libraries
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#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, int numarg, char *extramsg);
|
|
|
|
char *luaL_check_string (int numArg);
|
|
|
|
char *luaL_opt_string (int numArg, char *def);
|
|
|
|
double luaL_check_number (int numArg);
|
|
|
|
double luaL_opt_number (int numArg, double def);
|
|
|
|
lua_Object luaL_functionarg (int arg);
|
|
|
|
lua_Object luaL_tablearg (int arg);
|
|
|
|
lua_Object luaL_nonnullarg (int numArg);
|
|
|
|
void luaL_verror (char *fmt, ...);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|