(L *LState)
| 18 | } |
| 19 | |
| 20 | func OpenChannel(L *LState) int { |
| 21 | var mod LValue |
| 22 | //_, ok := L.G.builtinMts[int(LTChannel)] |
| 23 | // if !ok { |
| 24 | mod = L.RegisterModule(ChannelLibName, channelFuncs) |
| 25 | mt := L.SetFuncs(L.NewTable(), channelMethods) |
| 26 | mt.RawSetString("__index", mt) |
| 27 | L.G.builtinMts[int(LTChannel)] = mt |
| 28 | // } |
| 29 | L.Push(mod) |
| 30 | return 1 |
| 31 | } |
| 32 | |
| 33 | var channelFuncs = map[string]LGFunction{ |
| 34 | "make": channelMake, |
nothing calls this directly
no test coverage detected
searching dependent graphs…