11 lines
218 B
C
11 lines
218 B
C
#ifndef PX_COMMON_H__
|
|
#define PX_COMMON_H__
|
|
|
|
#include <stdlib.h>
|
|
|
|
#define PX_NEW(t) (t*)calloc(1, sizeof(t));
|
|
#define PX_NEW_UNINITIALIZED(t) (t*)malloc(sizeof(t));
|
|
#define PX_FREE(t) free(t);
|
|
|
|
#endif // PX_COMMON_H__
|