1997-03-18 18:30:50 +03:00
|
|
|
/*
|
1997-12-17 23:48:58 +03:00
|
|
|
** $Id: lauxlib.h,v 1.4 1997/12/09 13:35:19 roberto Exp roberto $
|
1997-09-16 23:25:59 +04:00
|
|
|
** Auxiliar functions for building Lua libraries
|
|
|
|
** See Copyright Notice in lua.h
|
1997-03-18 18:30:50 +03:00
|
|
|
*/
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1997-03-18 18:30:50 +03:00
|
|
|
#ifndef auxlib_h
|
|
|
|
#define auxlib_h
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1997-03-18 18:30:50 +03:00
|
|
|
#include "lua.h"
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1997-03-18 18:30:50 +03:00
|
|
|
struct luaL_reg {
|
|
|
|
char *name;
|
|
|
|
lua_CFunction func;
|
|
|
|
};
|
|
|
|
|
|
|
|
void luaL_openlib (struct luaL_reg *l, int n);
|
1997-11-21 22:00:46 +03:00
|
|
|
void luaL_arg_check (int cond, int numarg, char *extramsg);
|
1997-04-06 18:08:08 +04:00
|
|
|
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-12-09 16:50:08 +03:00
|
|
|
lua_Object luaL_functionarg (int arg);
|
|
|
|
lua_Object luaL_tablearg (int arg);
|
1997-09-26 19:02:26 +04:00
|
|
|
lua_Object luaL_nonnullarg (int numArg);
|
1997-03-18 18:30:50 +03:00
|
|
|
void luaL_verror (char *fmt, ...);
|
1997-12-17 23:48:58 +03:00
|
|
|
char *luaL_openspace (int size);
|
|
|
|
void luaL_resetbuffer (void);
|
|
|
|
void luaL_addchar (int c);
|
|
|
|
void luaL_addsize (int n);
|
|
|
|
int luaL_newbuffer (int size);
|
|
|
|
void luaL_oldbuffer (int old);
|
|
|
|
char *luaL_buffer (void);
|
1997-03-18 18:30:50 +03:00
|
|
|
|
1997-04-07 18:48:53 +04:00
|
|
|
|
1997-03-18 18:30:50 +03:00
|
|
|
#endif
|