Tencent / UnLua

A feature-rich, easy-learning and highly optimized Lua scripting plugin for UE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to export a static cppfunction with luaState* arg?

zdszx opened this issue · comments

my function is:
static int StartToCreate(lua_State* L){}
I write this to export:
EXPORT_FUNCTION(int,StartToCreate,lua_State*)

it has problem like:
UE_STATIC_ASSERT_COMPLETE_TYPE(From, "TPointerIsConvertibleFromTo must not be instantiated with incomplete types");

Use ADD_LIB