1 struct MyStruct {
2 float x;
3 float y;
4 };
5
status(float variable,string name)6 void status (float variable, string name)
7 {
8 printf ("%s connected: %d (value=%g)\n",
9 name, isconnected(variable), variable);
10 }
11
12
status(MyStruct variable,string name)13 void status (MyStruct variable, string name)
14 {
15 printf ("%s connected: %d (value={%g, %g})\n",
16 name, isconnected(variable), variable.x, variable.y);
17 status (variable.x, concat(name, ".x"));
18 status (variable.y, concat(name, ".y"));
19 }
20