Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / lualib.h @ 13

History | View | Annotate | Download (1.2 KB)

1
/*        $NetBSD: lualib.h,v 1.2 2014/07/19 18:38:34 lneto Exp $        */
2

    
3
/*
4
** $Id: lualib.h,v 1.2 2014/07/19 18:38:34 lneto Exp $
5
** Lua standard libraries
6
** See Copyright Notice in lua.h
7
*/
8

    
9

    
10
#ifndef lualib_h
11
#define lualib_h
12

    
13
#include "lua.h"
14

    
15

    
16

    
17
LUAMOD_API int (luaopen_base) (lua_State *L);
18

    
19
#define LUA_COLIBNAME        "coroutine"
20
LUAMOD_API int (luaopen_coroutine) (lua_State *L);
21

    
22
#define LUA_TABLIBNAME        "table"
23
LUAMOD_API int (luaopen_table) (lua_State *L);
24

    
25
#define LUA_IOLIBNAME        "io"
26
LUAMOD_API int (luaopen_io) (lua_State *L);
27

    
28
#define LUA_OSLIBNAME        "os"
29
LUAMOD_API int (luaopen_os) (lua_State *L);
30

    
31
#define LUA_STRLIBNAME        "string"
32
LUAMOD_API int (luaopen_string) (lua_State *L);
33

    
34
#define LUA_UTF8LIBNAME        "utf8"
35
LUAMOD_API int (luaopen_utf8) (lua_State *L);
36

    
37
#define LUA_BITLIBNAME        "bit32"
38
LUAMOD_API int (luaopen_bit32) (lua_State *L);
39

    
40
#define LUA_MATHLIBNAME        "math"
41
LUAMOD_API int (luaopen_math) (lua_State *L);
42

    
43
#define LUA_DBLIBNAME        "debug"
44
LUAMOD_API int (luaopen_debug) (lua_State *L);
45

    
46
#define LUA_LOADLIBNAME        "package"
47
LUAMOD_API int (luaopen_package) (lua_State *L);
48

    
49

    
50
/* open all previous libraries */
51
LUALIB_API void (luaL_openlibs) (lua_State *L);
52

    
53

    
54

    
55
#if !defined(lua_assert)
56
#define lua_assert(x)        ((void)0)
57
#endif
58

    
59

    
60
#endif