2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-11 10:17:49 +00:00

Force inlining

This commit is contained in:
Michael Brown 2007-01-31 03:50:31 +00:00
parent a3695b1ff6
commit 2e0548e17e

View File

@ -31,15 +31,17 @@ typedef void psPool_t;
#define sslAssert( ... ) assert ( __VA_ARGS__ )
static inline void * psMalloc ( psPool_t *pool __unused, size_t len ) {
static inline __attribute__ (( always_inline )) void *
psMalloc ( psPool_t *pool __unused, size_t len ) {
return malloc ( len );
}
static inline void * psRealloc ( void *ptr, size_t len ) {
static inline __attribute__ (( always_inline )) void *
psRealloc ( void *ptr, size_t len ) {
return realloc ( ptr, len );
}
static inline void psFree ( void *ptr ) {
static inline __attribute__ (( always_inline )) void psFree ( void *ptr ) {
free ( ptr );
}