File size: 512 Bytes
806d4b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
U0 StructName(U8 *d,U8 *class_name=lastclass)
{//lastclass is the prev fun arg's class as a string.
"%X is a \"%s\".\n",d,class_name;
}
class Student
{
Student *next;
I64 age;
U8 name[32];
} a;
class School
{
U8 name[32];
Student *students;
} s;
I64 i;
StructName(Fs);
StructName(&a);
StructName(&s);
StructName(&i);
PressAKey;
//lastclass is used in ClassRep() and ClassRepD().
ClassRepD(Gs);
PressAKey;
ClassRep(Fs);
//See also DocForm(), ::/Demo/Dsk/BlkDevRep.HC and ::/Demo/ClassMeta.HC.
|