An example of the linked object classes and their use.
#ifndef DEBUG
#define DEBUG
#endif
#include <stdio.h>
{
public:
unsigned value;
};
extern "C" int main()
{
unsigned count = 0;
int xv = 3, xn = 5;
ints v1(&list, xv);
ints v2(&list);
v2 = xn;
ptr = &list;
while(ptr) {
switch(++count)
{
case 1:
assert(ptr->value == 3);
break;
case 2:
assert(ptr->value == 5);
}
++ptr;
}
assert(count == 2);
member ov1 = 1, ov2 = 2, ov3 = 3;
assert(ov2.value == 2);
return 0;
}