mirror of
https://github.com/seL4/seL4.git
synced 2026-04-04 14:31:12 +00:00
make definition for NULL generic
Make the definition for NULL generic, so it can be used in constants that are shared by C and assembly code. Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
committed by
Gerwin Klein
parent
fec1b90ef8
commit
e20652f664
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
#define UL_CONST(x) x
|
||||
#define ULL_CONST(x) x
|
||||
#define NULL 0
|
||||
|
||||
#else /* not __ASSEMBLER__ */
|
||||
|
||||
@@ -31,6 +32,7 @@
|
||||
*/
|
||||
#define UL_CONST(x) PASTE(x, ul)
|
||||
#define ULL_CONST(x) PASTE(x, llu)
|
||||
#define NULL ((void *)0)
|
||||
|
||||
#endif /* [not] __ASSEMBLER__ */
|
||||
|
||||
@@ -67,8 +69,6 @@
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#define NULL ((void *)0)
|
||||
|
||||
#define PACKED __attribute__((packed))
|
||||
#define NORETURN __attribute__((__noreturn__))
|
||||
#define CONST __attribute__((__const__))
|
||||
|
||||
Reference in New Issue
Block a user