Debian Codegraph @

ipl/packs/loadfuncpp/examples/coexp.cpp

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