2 * gcc -shared helloworld.c -o helloworld.pd_linux
7 static t_class
*helloworld_class
;
9 typedef struct _helloworld
{
13 void helloworld_bang(t_helloworld
*x
)
15 post("Hello world !!");
19 void *helloworld_new(void)
21 t_helloworld
*x
= (t_helloworld
*)pd_new(helloworld_class
);
26 void helloworld_setup(void) {
27 helloworld_class
= class_new(gensym("helloworld"),
28 (t_newmethod
)helloworld_new
,
29 0, sizeof(t_helloworld
),
31 class_addbang(helloworld_class
, helloworld_bang
);
This page took 0.315481 seconds and 4 git commands to generate.