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