blob: c3e10ee6c298203c049b2db0970c480dd4d05b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
link loadfuncpp
procedure main()
icall := loadfuncpp("./callicon.so", "iexample")
write( icall(f, ["Argument passed"]) )
end
procedure f(arg)
write(arg)
write("Called from C++")
every write( g(arg) )
x := create g(arg)
while writes(@x)
write()
return "Result string!"
end
procedure g(arg)
suspend !arg
end
|