(lvalue LValue, event string)
| 999 | } |
| 1000 | |
| 1001 | func (ls *LState) metaOp1(lvalue LValue, event string) LValue { |
| 1002 | if mt := ls.metatable(lvalue, true); mt != LNil { |
| 1003 | if tb, ok := mt.(*LTable); ok { |
| 1004 | return tb.RawGetString(event) |
| 1005 | } |
| 1006 | } |
| 1007 | return LNil |
| 1008 | } |
| 1009 | |
| 1010 | func (ls *LState) metaOp2(value1, value2 LValue, event string) LValue { |
| 1011 | if mt := ls.metatable(value1, true); mt != LNil { |
no test coverage detected