Revert previous change and just removed inline on the function

This commit is contained in:
xawotihs
2015-10-10 18:41:43 +02:00
parent 5f91566fa7
commit eef46fe743
2 changed files with 2 additions and 6 deletions

View File

@@ -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)

View File

@@ -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);
}