oooh....
Okay, for example, i wrote function in App.cpp
void App::Test(lua_State* L)
{
System::Print("TEST FUNCTION");
}
in .h file i wrote in public functions this:
virtual void test(lua_State* L);
in test lua file i wrote this:
function Script:Start()
App:test()
end
but it doesn't work. What am I missing to make this work? It's test function, i know lua language, but I need to rewrite part of the Lua code into C ++, but I don’t know how to call my custom C++ by lua.
That's why I started with simple functions, but I can't even just write a message to the console.