I noticed that the lua_yield / yieldk docs in 5.1 and 5.2 don't define the return value of the function. (If I understand correctly it's the number of arguments placed on the stack by lua_resume.)