(lvalue LValue)
| 1024 | } |
| 1025 | |
| 1026 | func (ls *LState) metaCall(lvalue LValue) (*LFunction, bool) { |
| 1027 | if fn, ok := lvalue.(*LFunction); ok { |
| 1028 | return fn, false |
| 1029 | } |
| 1030 | if fn, ok := ls.metaOp1(lvalue, "__call").(*LFunction); ok { |
| 1031 | return fn, true |
| 1032 | } |
| 1033 | return nil, false |
| 1034 | } |
| 1035 | |
| 1036 | func (ls *LState) initCallFrame(cf *callFrame) { // +inline-start |
| 1037 | if cf.Fn.IsG { |