diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-08-20 08:44:27 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-08-20 08:44:27 -0400 |
commit | 0dc221b200b9d3df550e2d760cb396e4cb5f7176 (patch) | |
tree | 3524a0f494b1bec609cea0716cfb6f0ca515fd38 /lib/LuaJIT/src/lj_clib.h | |
parent | 2364287a961fa9c860e1146bbcc3391ec5b1fd54 (diff) |
submodule LuaJIT; build libs through Makefile
Diffstat (limited to 'lib/LuaJIT/src/lj_clib.h')
-rw-r--r-- | lib/LuaJIT/src/lj_clib.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/LuaJIT/src/lj_clib.h b/lib/LuaJIT/src/lj_clib.h deleted file mode 100644 index fcc9dac..0000000 --- a/lib/LuaJIT/src/lj_clib.h +++ /dev/null @@ -1,29 +0,0 @@ -/* -** FFI C library loader. -** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h -*/ - -#ifndef _LJ_CLIB_H -#define _LJ_CLIB_H - -#include "lj_obj.h" - -#if LJ_HASFFI - -/* Namespace for C library indexing. */ -#define CLNS_INDEX ((1u<<CT_FUNC)|(1u<<CT_EXTERN)|(1u<<CT_CONSTVAL)) - -/* C library namespace. */ -typedef struct CLibrary { - void *handle; /* Opaque handle for dynamic library loader. */ - GCtab *cache; /* Cache for resolved symbols. Anchored in ud->env. */ -} CLibrary; - -LJ_FUNC TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name); -LJ_FUNC void lj_clib_load(lua_State *L, GCtab *mt, GCstr *name, int global); -LJ_FUNC void lj_clib_unload(CLibrary *cl); -LJ_FUNC void lj_clib_default(lua_State *L, GCtab *mt); - -#endif - -#endif |