lua/lualib.h

46 lines
998 B
C
Raw Normal View History

1993-07-28 17:18:00 +04:00
/*
** $Id: lualib.h,v 1.7 1999/08/16 20:52:00 roberto Exp roberto $
1997-09-16 23:25:59 +04:00
** Lua standard libraries
** See Copyright Notice in lua.h
1993-07-28 17:18:00 +04:00
*/
1997-09-16 23:25:59 +04:00
1993-07-28 17:18:00 +04: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 23:25:59 +04:00
void lua_userinit (lua_State *L);
1997-09-16 23:25:59 +04:00
/*
** ===============================================================
** Macros for single-state use
** ===============================================================
*/
#ifndef LUA_REENTRANT
1997-09-16 23:25:59 +04: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)
#define lua_userinit() (lua_userinit)(lua_state)
#endif
1993-07-28 17:18:00 +04:00
1998-06-19 20:14:09 +04:00
/* Auxiliary functions (private) */
const char *luaI_classend (lua_State *L, const char *p);
1999-08-17 00:52:00 +04:00
int luaI_singlematch (int c, const char *p, const char *ep);
1993-07-28 17:18:00 +04:00
#endif