diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-28 19:46:37 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-28 19:46:37 +0200 |
commit | 685d85540c604164087e21b2ff1bd17251c0ec18 (patch) | |
tree | 9313e574b76d01313522ef6f94bff1ef16998535 /include/common.h | |
parent | 6b7fdcb9702516faa3b125431c6212c0ebb3c8a6 (diff) | |
download | barebox-685d85540c604164087e21b2ff1bd17251c0ec18.tar.gz barebox-685d85540c604164087e21b2ff1bd17251c0ec18.tar.xz |
move ARRAY_SIZE macro to include/common.h
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index de6d473348..8110f1a08e 100644 --- a/include/common.h +++ b/include/common.h @@ -169,4 +169,6 @@ int arch_execute(unsigned long address, int argc, char *argv[]); int run_shell(void); +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* __COMMON_H_ */ |