github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/lib/base/rawget.go (about) 1 package base 2 3 import ( 4 rt "github.com/arnodel/golua/runtime" 5 ) 6 7 func rawget(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { 8 if err := c.CheckNArgs(2); err != nil { 9 return nil, err 10 } 11 tbl, err := c.TableArg(0) 12 if err != nil { 13 return nil, err 14 } 15 return c.PushingNext1(t.Runtime, rt.RawGet(tbl, c.Arg(1))), nil 16 }