Example #1
0
File: lua.go Project: szll/golua
// lua_lessthan
func (L *State) LessThan(index1, index2 int) bool {
	return C.lua_lessthan(L.s, C.int(index1), C.int(index2)) == 1
}
Example #2
0
// Returns true if the value at valid index i1 is smaller than the value
// at index i2, following the semantics of the Lua < operator (that is,
// may call metamethods). Otherwise returns false. Also returns false if
// any of the indices is invalid.
func (s *State) Lessthan(i1, i2 int) bool {
	return int(C.lua_lessthan(s.l, C.int(i1), C.int(i2))) == 1
}