blob: a62d347f8270eee8002f30e1448e5627cd157332 (
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[]) {
safe x(argc, argv); //make the arguments into an Icon list
argv[0] = x;
return SUCCEEDED;
}
|