2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
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
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
);