blob: 7d0a224b7531a6e3d3807588463a172351cd7155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Example of a C++ extension to icon via loadfunc,
* without garbage collection difficulties.
* Type 'make <platform>' to build.
* For available <platform>s type 'make'.
* Carl Sturtivant, 2007/9/25
*/
#include "loadfuncpp.h"
extern "C" int iexample(int argc, value argv[]) {
argv[0] = argv[1].apply(argv[2]);
return SUCCEEDED;
}
|