this is my first question on this forum so please excuse me if I don't do this correct. I am currently working on a little project in C++ which uses the Lua API and I am trying to detect yielding without using lua_resume and lua_pcall. The reason for not using these is just simply because I can't use them for this project. This is a small representation of the code I have to run the delay function I registered.
void DoSleep(lua_State* L)
{
lua_getglobal(L, "custom_delay"); // Custom function
lua_pushnumber(L, 2); // Seconds
lua_call(L, 1, 0); // 1 arg, no returns
// Can I see if it yields using lua_status?
}
Basically, like you can see in my code my question is the following; Will I get a return from lua_resume if lua_call yields?