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

Method exec

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

Source from the content-addressed store, hash-verified

61 }
62
63 fn exec(&self, scope: Scope<'_>) -> CallResult<()> {
64 let mut total = scope.get_double(0);
65 let num_singular: usize = 1;
66 let mut reg = num_singular;
67 while reg < scope.nargs() {
68 total += f64::from(scope.get_integer(reg as u8));
69 reg += 1;
70 }
71 scope.return_double(total)
72 }
73}

Callers

nothing calls this directly

Calls 4

get_doubleMethod · 0.80
nargsMethod · 0.80
get_integerMethod · 0.80
return_doubleMethod · 0.80

Tested by

no test coverage detected