summaryrefslogtreecommitdiff
path: root/ipl/packs/loadfuncpp/examples/mkexternal.cpp
blob: 39c9b84e28e6783f3a2252d90bb781767d70535a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

/* 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[]) {
	argv[0] = new external();
    return SUCCEEDED;
}