lua/lualib.h

36 lines
793 B
C
Raw Normal View History

1993-07-28 06:18:00 -07:00
/*
1993-12-17 11:01:46 -08:00
** Libraries to be used in LUA programs
1993-07-28 06:18:00 -07:00
** Grupo de Tecnologia em Computacao Grafica
** TeCGraf - PUC-Rio
1996-08-01 07:55:33 -07:00
** $Id: lualib.h,v 1.8 1996/04/30 21:13:55 roberto Exp roberto $
1993-07-28 06:18:00 -07:00
*/
#ifndef lualib_h
#define lualib_h
#include "lua.h"
1993-07-28 06:18:00 -07:00
void iolib_open (void);
void strlib_open (void);
void mathlib_open (void);
/* auxiliar functions (private) */
struct lua_reg {
char *name;
lua_CFunction func;
};
void luaI_openlib (struct lua_reg *l, int n);
1996-08-01 07:55:33 -07:00
void lua_arg_check(int cond, char *funcname);
char *lua_check_string (int numArg, char *funcname);
1996-08-01 07:55:33 -07:00
char *lua_opt_string (int numArg, char *def, char *funcname);
double lua_check_number (int numArg, char *funcname);
1996-08-01 07:55:33 -07:00
long lua_opt_number (int numArg, long def, char *funcname);
1996-01-22 09:38:57 -08:00
char *luaI_addchar (int c);
void luaI_addquoted (char *s);
1993-07-28 06:18:00 -07:00
#endif
1993-12-17 11:01:46 -08:00