blob: 74373dda1c302e1ed9216199f250c8bbf487cf93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Example of a C++ extension to icon via loadfunc,
* without garbage collection difficulties.
* Type 'make iexample' to build.
* Carl Sturtivant, 2007/9/25
*/
#include "loadfuncpp.h"
using namespace Icon;
extern "C" int iexample(int argc, value argv[]) {
safe x = argv[1];
stop(x);
return SUCCEEDED;
}
|