lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2007/11/21, Luiz Henrique de Figueiredo <>:
> > can anyone plase point me to documented cases where luaL_dofile() returns a
> > LUA_YIELD error code ?
> says luaL_dofile only
> returns 0 or 1.

I was also reading that lua_pcall returns error codes defined in

Since in lua.h the code LUA_YIELD is defined along with those others,
and since luaL_dofile si defined as: (luaL_loadstring(L, str) ||
lua_pcall(L, 0, LUA_MULTRET, 0))
I was wondering if it's actually lua_pcall returning the error
code...and thus possibly returning LUA_YIELD. (?!)

I'm asking because I'm using no coroutines at all, and because
apparently LUA_YIELD looks mainly like a coroutine-type error code

Using 5.1.2, btw.