summaryrefslogtreecommitdiff
path: root/engine/dmlib/dmengine/dm_util/hdr/dmdefs.h
blob: 137b0da91200031acba5c4ec745b2a4be7c0c162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef DM_DEFS_H
#define DM_DEFS_H

/************** HEADER FILE INCLUDES *****************************************/

#include "dmMemory.h"


#define DIM(array) (sizeof(array)/sizeof((array)[0]))

#define FreeAndSetNull(_x) \
	if ((_x)!=NULL) { DmFreeMem(_x); (_x)=NULL; }


#endif /* DMDEFS_H */