mirror of
https://github.com/CompeyDev/lei.git
synced 2024-12-12 12:50:42 +00:00
23 lines
No EOL
557 B
C
23 lines
No EOL
557 B
C
#include <stdio.h>
|
|
#include <lua.h>
|
|
#include <_cgo_export.h>
|
|
|
|
// void* clua_alloc(void* ud, void *ptr, size_t osize, size_t nsize)
|
|
// {
|
|
// return (void*) go_allocf((GoUintptr) ud,(GoUintptr) ptr, osize, nsize);
|
|
// }
|
|
|
|
|
|
lua_State* clua_newstate(void* f, void* ud)
|
|
{
|
|
return lua_newstate((lua_Alloc)f, ud);
|
|
}
|
|
|
|
l_noret cluaL_errorL(lua_State* L, char* msg)
|
|
{
|
|
luaL_errorL(L, msg);
|
|
}
|
|
|
|
void clua_pushcclosurek(lua_State* L, void* f, char* debugname, int nup, void* cont) {
|
|
return lua_pushcclosurek(L, (lua_CFunction)f, debugname, nup, (lua_Continuation)cont);
|
|
} |