MCPcopy Index your code
hub / github.com/endbasic/endbasic / exec

Method exec

core/tests/testutils/callables/max_doubles_fn.rs:56–68  ·  view source on GitHub ↗
(&self, scope: Scope<'_>)

Source from the content-addressed store, hash-verified

54 }
55
56 fn exec(&self, scope: Scope<'_>) -> CallResult<()> {
57 let mut max = f64::MIN;
58 let num_singular: usize = 0;
59 let mut reg = num_singular;
60 while reg < scope.nargs() {
61 let n = scope.get_double(reg as u8);
62 if n > max {
63 max = n;
64 }
65 reg += 1;
66 }
67 scope.return_double(max)
68 }
69}

Callers

nothing calls this directly

Calls 3

nargsMethod · 0.80
get_doubleMethod · 0.80
return_doubleMethod · 0.80

Tested by

no test coverage detected