diff options
Diffstat (limited to 'lua.go')
| -rw-r--r-- | lua.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -293,12 +293,14 @@ func (l *Lua) GetGlobal(name string) { } func (l *Lua) NewThread(yield func(), resume func() bool) *Lua { - return &Lua{ + newl := &Lua{ l: C.lua_newthread(l.l), running: l.running, resume: resume, yield: yield, } + newl.PushGoFunction(TracebackHandler) + return newl } // TracebackHandler handles stack trace formatting on errors. |
