summaryrefslogtreecommitdiff
path: root/ipl/packs/loadfuncpp/doc/makelist.cpp
blob: 90b8c5d7721ac1b145d7b90e1f381af99a088c7d (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, 2008/3/16
 */

#include "loadfuncpp.h"
using namespace Icon;

extern "C" int makelist(int argc, value argv[]) {
    safe arglist(argc, argv);
	argv[0] = arglist;
	return SUCCEEDED;
}