MCPcopy Index your code
hub / github.com/yuin/gopher-lua / objectRationalWithError

Function objectRationalWithError

vm.go:2440–2449  ·  view source on GitHub ↗
(L *LState, lhs, rhs LValue, event string)

Source from the content-addressed store, hash-verified

2438}
2439
2440func objectRationalWithError(L *LState, lhs, rhs LValue, event string) bool {
2441 switch objectRational(L, lhs, rhs, event) {
2442 case 1:
2443 return true
2444 case 0:
2445 return false
2446 }
2447 L.RaiseError("attempt to compare %v with %v", lhs.Type().String(), rhs.Type().String())
2448 return false
2449}
2450
2451func objectRational(L *LState, lhs, rhs LValue, event string) int {
2452 m1 := L.metaOp1(lhs, event)

Callers 2

initFunction · 0.70
lessThanFunction · 0.70

Calls 4

objectRationalFunction · 0.70
StringMethod · 0.65
TypeMethod · 0.65
RaiseErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…