1997-03-18 23:30:50 +08:00
|
|
|
/*
|
1997-09-26 23:02:26 +08:00
|
|
|
** $Id: lauxlib.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
|
1997-09-17 03:25:59 +08:00
|
|
|
** Auxiliar functions for building Lua libraries
|
|
|
|
** See Copyright Notice in lua.h
|
1997-03-18 23:30:50 +08:00
|
|
|
*/
|
|
|
|
|
1997-09-17 03:25:59 +08:00
|
|
|
|
1997-03-18 23:30:50 +08:00
|
|
|
#ifndef auxlib_h
|
|
|
|
#define auxlib_h
|
|
|
|
|
1997-09-17 03:25:59 +08:00
|
|
|
|
1997-03-18 23:30:50 +08:00
|
|
|
#include "lua.h"
|
|
|
|
|
1997-09-17 03:25:59 +08:00
|
|
|
|
1997-03-18 23:30:50 +08:00
|
|
|
struct luaL_reg {
|
|
|
|
char *name;
|
|
|
|
lua_CFunction func;
|
|
|
|
};
|
|
|
|
|
|
|
|
void luaL_openlib (struct luaL_reg *l, int n);
|
1997-04-06 22:08:08 +08:00
|
|
|
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);
|
1997-09-26 23:02:26 +08:00
|
|
|
lua_Object luaL_nonnullarg (int numArg);
|
1997-03-18 23:30:50 +08:00
|
|
|
void luaL_verror (char *fmt, ...);
|
|
|
|
|
1997-04-07 22:48:53 +08:00
|
|
|
|
1997-03-18 23:30:50 +08:00
|
|
|
#endif
|