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