for example i have this:
static int callFunction(lua_State* L)
{
int p = lua_gettop(L);
if (p == 1 && lua_isfunction(L, -1)) {
/*
* now i need something like "get the function thats in the first parametre
*/
}
return 0;
}
now i need to get the function thats in the first parametre of the function in this C++ code, sry for not being clear, i suck at explaining.