2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 #include <proto/pertask.h>
9 #include <proto/userel.h>
11 #include "pertaskvalue.h"
13 int main (int argc
, char ** argv
)
15 IPTR vec
[3] = {1, 2, 0};
17 vec
[2] = DummyAdd(vec
[0], vec
[1]);
19 VPrintf((STRPTR
)"%ld+%ld=%ld\n",vec
);
21 vec
[0] = (IPTR
)PertaskGetParentBase();
23 VPrintf((STRPTR
)"ParentBase = %ld\n",vec
);
25 Printf("104 205 306 407:\n");
26 DummyPrint4(101, 202, 303, 404);
29 Printf("\n1 == %ld ?\n", PertaskGetValue());
30 Printf("1 == %ld ?\n", GetChildValue());
33 Printf("\n2 == %ld ?\n", GetChildValue());