lua/lualib.h

46 lines
1017 B
C
Raw Normal View History

1993-07-28 06:18:00 -07:00
/*
** $Id: lualib.h,v 1.8 1999/11/22 13:12:07 roberto Exp roberto $
1997-09-16 12:25:59 -07:00
** Lua standard libraries
** See Copyright Notice in lua.h
1993-07-28 06:18:00 -07:00
*/
1997-09-16 12:25:59 -07:00
1993-07-28 06:18:00 -07:00
#ifndef lualib_h
#define lualib_h
#include "lua.h"
void lua_iolibopen (lua_State *L);
void lua_strlibopen (lua_State *L);
void lua_mathlibopen (lua_State *L);
void lua_dblibopen (lua_State *L);
1997-09-16 12:25:59 -07:00
/*
** ===============================================================
** Macros (and functions) for single-state use
** ===============================================================
*/
#ifndef LUA_REENTRANT
1997-09-16 12:25:59 -07:00
#define lua_iolibopen() (lua_iolibopen)(lua_state)
#define lua_strlibopen() (lua_strlibopen)(lua_state)
#define lua_mathlibopen() (lua_mathlibopen)(lua_state)
#define lua_dblibopen() (lua_dblibopen)(lua_state)
/* this function should be used only in single-state mode */
void lua_userinit (void);
#endif
1993-07-28 06:18:00 -07:00
1998-06-19 09:14:09 -07:00
/* Auxiliary functions (private) */
const char *luaI_classend (lua_State *L, const char *p);
1999-08-16 13:52:00 -07:00
int luaI_singlematch (int c, const char *p, const char *ep);
1993-07-28 06:18:00 -07:00
#endif