Copyright clean-up (part 1):
[AROS.git] / test / library / pertaskvalue_linklib.c
blob12306dbf56d751145e63203c1990e3e203062f27
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*
7 * This function is in the static link lib.
8 * It uses the genmodule provided __GM_GetBase_PertaskBase() function so it can be
9 * used both in a library that uses pertask_rel.a or a program that just uses
10 * pertask.a.
11 * It does not call a function in pertask.library so that a good optimizing
12 * compiler with link time function inlining can optimize this well.
14 #include <proto/pertask.h>
16 #include "pertaskbase.h"
18 int *__pertask_getvalueptr(void)
20 return &(((struct PertaskBase *)__aros_getbase_PertaskBase())->value);