aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/luajit-2.0/src/lj_clib.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-23 23:36:30 +1000
committerDavid Walter Seikel2012-01-23 23:36:30 +1000
commit6523585c66c04cea54df50013df8886b589847d8 (patch)
tree0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/luajit-2.0/src/lj_clib.h
parentUpdate the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff)
downloadSledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz
Add luaproc and LuaJIT libraries.
Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly.
Diffstat (limited to 'libraries/luajit-2.0/src/lj_clib.h')
-rw-r--r--libraries/luajit-2.0/src/lj_clib.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/src/lj_clib.h b/libraries/luajit-2.0/src/lj_clib.h
new file mode 100644
index 0000000..51c3270
--- /dev/null
+++ b/libraries/luajit-2.0/src/lj_clib.h
@@ -0,0 +1,29 @@
1/*
2** FFI C library loader.
3** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h
4*/
5
6#ifndef _LJ_CLIB_H
7#define _LJ_CLIB_H
8
9#include "lj_obj.h"
10
11#if LJ_HASFFI
12
13/* Namespace for C library indexing. */
14#define CLNS_INDEX ((1u<<CT_FUNC)|(1u<<CT_EXTERN)|(1u<<CT_CONSTVAL))
15
16/* C library namespace. */
17typedef struct CLibrary {
18 void *handle; /* Opaque handle for dynamic library loader. */
19 GCtab *cache; /* Cache for resolved symbols. Anchored in ud->env. */
20} CLibrary;
21
22LJ_FUNC TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name);
23LJ_FUNC void lj_clib_load(lua_State *L, GCtab *mt, GCstr *name, int global);
24LJ_FUNC void lj_clib_unload(CLibrary *cl);
25LJ_FUNC void lj_clib_default(lua_State *L, GCtab *mt);
26
27#endif
28
29#endif