lua-users home
lua-l archive

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


Is there a way to get the stack trace of a suspended coroutine?
For example:

	function f()
		coroutine.yield(1)
		coroutine.yield(2)
	end
	
	co = coroutine.create(f)
	print(coroutine.resume(co))
	-- Now how do I print the stack trace of co?

Thanks.
Russ