Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lua_mtutil.h « src - github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01f56e9f5d0846c44442a89d9b1eb2137c3f82eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __LUA_MTUTIL_H___
#define __LUA_MTUTIL_H___
#ifdef  __cplusplus
extern "C" {
#endif
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>

int lua_opentablemt(lua_State *L, const char * libname, const luaL_Reg * reg);
void * lua_newuserdatamt(lua_State *L, size_t cdata, const char * mtname, const luaL_Reg * mtreg);
void * lua_newuserdatamtuv(lua_State *L, size_t cdata, const char * mtname, const luaL_Reg * mtreg, int upval);
#ifdef  __cplusplus
}
#endif
#endif //__LUA_MTUTIL_H___