1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-01-19 11:52:16 +01:00
This commit is contained in:
Unknown 2018-05-13 15:29:15 +01:00
parent 7cdf8849b7
commit cfd2749134
4 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#pragma once
#if defined (__cplusplus)
extern "C" {
#endif
#include <stdlib.h>
void* alignedAlloc( unsigned bytes, unsigned alignment )
@ -30,3 +34,8 @@ void alignedFree( void* p )
{
free( p );
}
#if defined (__cplusplus)
}
#endif

View File

@ -1,5 +1,9 @@
#pragma once
#if defined (__cplusplus)
extern "C" {
#endif
#include <signal.h>
enum { HAVE_TRAP_INSTRUCTION = 1, };
@ -22,3 +26,7 @@ __inline__ static void DEBUG_BREAK(void)
#else
#define assert(expr) //do nothing
#endif
#if defined (__cplusplus)
}
#endif

View File

@ -1,5 +1,9 @@
#pragma once
#if defined (__cplusplus)
extern "C" {
#endif
#include "CustomAssert.h"
#include <stdint.h>
@ -54,3 +58,7 @@ void linearFree(LinearAllocator* la, void* p)
//assert(0); //this shouldn't really happen, just destroy/reset the whole allocator
}
#if defined (__cplusplus)
}
#endif

View File

@ -1,5 +1,9 @@
#pragma once
#if defined (__cplusplus)
extern "C" {
#endif
#include "CustomAssert.h"
#include <stdint.h>
@ -78,3 +82,7 @@ void poolFree(PoolAllocator* pa, void* p)
//set next free block to the freshly freed block
pa->nextFreeBlock = p;
}
#if defined (__cplusplus)
}
#endif