| Q B A S E R E S O L V E ( )
| | | | | SOURCE: qdev_macros.txt 1.16 (12/09/2014) English AMIGA - PUBLIC
----------------------------------------------------------------------------
NAME
QBASERESOLVE() - Resolves real base from local one
that was cached.
SYNOPSIS
ptr = QBASERESOLVE(sym)
[struct Library *] QBASERESOLVE(<symbol>);
FUNCTION
Returns ptr to real/global base if its local alias
was cached with QBASEPOINTER().
INPUTS
sym - Cache variable.
RETURNS
Global base pointer.
BASES
None.
NOTES
This macro is only defined in 'qdev.h', so you can
access LBS ptrs without the need to activate it.
SEE ALSO
QBASEDECL(), QBASEDECL2(), QBASEASSIGN2(),
QBASELOCAL(), QBASEJUMPTAB(), QBASESLOTS()
EXAMPLE
...
/*
* In reality address of L_MyBase is cached here!
*/
void *MyBaseCached = QBASEPOINTER(MyBase);
...
void myfunction(void *MyBaseCached)
{
void *MyBase = QBASERESOLVE(MyBaseCached);
...
}
...
BUGS
None known.
----------------------------------------------------------------------------
| |
| |