blob: 4eb4f99c8e42fac0eb4dc8a39a7412442edae3dc [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))
vapier2751f262008-02-11 16:39:54 +000011
vapier37e9aaf2008-09-24 04:39:38 +000012#ifndef ARRAY_SIZE
subrata_modak88c166c2009-06-09 16:01:20 +000013 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
vapier37e9aaf2008-09-24 04:39:38 +000014#endif
15
subrata_modak88c166c2009-06-09 16:01:20 +000016#endif /* __LTP_COMPILER_H__ */