debug.traceback as an error handler for coroutines
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: debug.traceback as an error handler for coroutines
- From: Matt Campbell <mattc@...>
- Date: 2006年3月04日 09:54:12 -0600
Hello:
Is there a way to use debug.traceback as an error handler for
coroutines, so I can get a traceback if an error occurs inside a
coroutine? I don't see a way to do it from Lua, using either
coroutine.resume or the function returned by coroutine.wrap. So can a C
function be written to do this? Thanks.
--
Matt Campbell
Lead Programmer
Serotek Corporation
www.freedombox.info
"The Accessibility Anywhere People"