Revert previous change and just removed inline on the function
This commit is contained in:
@@ -32,11 +32,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//void* vrelptr( void *ptr ); // make a pointer relative to memory base address (ATTENTION: A NULL rel ptr is not illegal/invalid!)
|
||||
inline void* vrelptr(void *ptr)
|
||||
{
|
||||
return (void*)((unsigned int)ptr & ~__MEM_START);
|
||||
};
|
||||
void* vrelptr( void *ptr ); // make a pointer relative to memory base address (ATTENTION: A NULL rel ptr is not illegal/invalid!)
|
||||
|
||||
void* vabsptr( void *ptr ); // make a pointer absolute (default return type of valloc)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ static int __largest_block = __MEM_BLOCKS;
|
||||
static int __mem_free = __MEM_BLOCKS;
|
||||
|
||||
|
||||
inline void* vrelptr( void *ptr )
|
||||
void* vrelptr( void *ptr )
|
||||
{
|
||||
return (void*)((unsigned int)ptr & ~__MEM_START);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user