Debian Codegraph @

ipl/packs/loadfuncpp/examples/kwd_vbl.cpp

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