blob: 811c368c5b23a800da3c5caa13b3d7d92df10198 [file] [log] [blame]
vapier2751f262008-02-11 16:39:54 +00001/*
2 * compiler.h: take care of fun compiler details here
3 *
4 * Licensed under the GPL-2 or later
5 */
6
7#ifndef __LTP_COMPILER_H__
8#define __LTP_COMPILER_H__
9
subrata_modak88c166c2009-06-09 16:01:20 +000010#define LTP_ATTRIBUTE_NORETURN __attribute__((noreturn))
subrata_modak04f47a12009-09-18 17:44:08 +000011#define LTP_ATTRIBUTE_UNUSED __attribute__((unused))
vapier2751f262008-02-11 16:39:54 +000012
vapier37e9aaf2008-09-24 04:39:38 +000013#ifndef ARRAY_SIZE
subrata_modak88c166c2009-06-09 16:01:20 +000014 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
vapier37e9aaf2008-09-24 04:39:38 +000015#endif
16
subrata_modak88c166c2009-06-09 16:01:20 +000017#endif /* __LTP_COMPILER_H__ */