blob: 6bdf344eca2fd06dc87fec310099d9bc5836c1f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
include rt;
include run;
include icon;
int target(int value) { int n = value * 2; return n + 1; }
fn main() {
let frame = icon.begin_function(target);
icon.set_local(frame, "value", 6);
icon.resume(frame, 8);
rt.put_n(icon.result(frame)); rt.put_c(' '); rt.put_n(target(2)); rt.put_c(10);
icon.close(d*frame);
return 0;
}
|