Judging by anything other than the source code for 5.2, it would seem that from used only to correctly calculate the number of nested C calls during renewal.
L->nCcalls = (from) ? from->nCcalls + 1 : 1;
and
lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0));
The implementation of coroutine.resume seems to use it that way.
It resumes the coroutine coroutine with text from main thread, which resumes it.
status = lua_resume(co, L, narg);
source share