MCPcopy Index your code
hub / github.com/yuin/gopher-lua / CheckThread

Method CheckThread

auxlib.go:99–106  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

97}
98
99func (ls *LState) CheckThread(n int) *LState {
100 v := ls.Get(n)
101 if lv, ok := v.(*LState); ok {
102 return lv
103 }
104 ls.TypeError(n, LTThread)
105 return nil
106}
107
108func (ls *LState) CheckType(n int, typ LValueType) {
109 v := ls.Get(n)

Callers 4

TestCheckThreadFunction · 0.80
coResumeFunction · 0.80
coStatusFunction · 0.80
coWrapFunction · 0.80

Calls 2

GetMethod · 0.95
TypeErrorMethod · 0.95

Tested by 1

TestCheckThreadFunction · 0.64