Statistics
| Branch: | Tag: | Revision:

amiro-os / include / amiro / util / util.h @ 8dced1c9

History | View | Annotate | Download (261 Bytes)

1
/*
2
 * util.h
3
 *
4
 *  Created on: Jun 18, 2014
5
 *      Author: Robert ABEL
6
 */
7

    
8
#ifndef UTIL_H_
9
#define UTIL_H_
10

    
11
#define ARRAY_SIZE(_X_) (sizeof(_X_) / sizeof((_X_)[0]))
12

    
13
#define MEMBER_SIZE(_TYPE_, _MEMBER_) sizeof(((_TYPE_ *)0)->_MEMBER_)
14

    
15
#endif /* UTIL_H_ */