mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-17 13:49:55 +00:00
Lot of work and added MS Detours
This commit is contained in:
29
include/lua/lj_clib.h
Normal file
29
include/lua/lj_clib.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
** 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
|
||||
Reference in New Issue
Block a user