summaryrefslogtreecommitdiff
path: root/src/lualib.js
blob: d87cfbcd6a28356682ff0aed3bd933554f38a07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*jshint esversion: 6 */
"use strict";

const assert = require('assert');
const lua    = require('./lua.js');


const LUA_VERSUFFIX = "_" + lua.LUA_VERSION_MAJOR + "_" + lua.LUA_VERSION_MINOR;

const LUA_COLIBNAME   = "coroutine";
const LUA_TABLIBNAME  = "table"
const LUA_IOLIBNAME   = "io"
const LUA_OSLIBNAME   = "os"
const LUA_STRLIBNAME  = "string"
const LUA_UTF8LIBNAME = "utf8"
const LUA_BITLIBNAME  = "bit32"
const LUA_MATHLIBNAME = "math"
const LUA_DBLIBNAME   = "debug"
const LUA_LOADLIBNAME = "package"


module.exports.LUA_BITLIBNAME  = LUA_BITLIBNAME;
module.exports.LUA_COLIBNAME   = LUA_COLIBNAME;
module.exports.LUA_DBLIBNAME   = LUA_DBLIBNAME;
module.exports.LUA_IOLIBNAME   = LUA_IOLIBNAME;
module.exports.LUA_LOADLIBNAME = LUA_LOADLIBNAME;
module.exports.LUA_MATHLIBNAME = LUA_MATHLIBNAME;
module.exports.LUA_OSLIBNAME   = LUA_OSLIBNAME;
module.exports.LUA_STRLIBNAME  = LUA_STRLIBNAME;
module.exports.LUA_TABLIBNAME  = LUA_TABLIBNAME;
module.exports.LUA_UTF8LIBNAME = LUA_UTF8LIBNAME;
module.exports.LUA_VERSUFFIX   = LUA_VERSUFFIX;