vapier | 2751f26 | 2008-02-11 16:39:54 +0000 | [diff] [blame] | 1 | /* |
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 | |||||
10 | #define attribute_noreturn __attribute__((noreturn)) | ||||
11 | |||||
vapier | 37e9aaf | 2008-09-24 04:39:38 +0000 | [diff] [blame^] | 12 | #ifndef ARRAY_SIZE |
13 | # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) | ||||
14 | #endif | ||||
15 | |||||
vapier | 2751f26 | 2008-02-11 16:39:54 +0000 | [diff] [blame] | 16 | #endif |