git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
compiler.h
diff --git
a/lunaix-os/includes/lunaix/compiler.h
b/lunaix-os/includes/lunaix/compiler.h
index a97c8c5732df99854783832d0a639f6e6adc6387..314afd95e297948b6d3596f341ed6f770c32c819 100644
(file)
--- a/
lunaix-os/includes/lunaix/compiler.h
+++ b/
lunaix-os/includes/lunaix/compiler.h
@@
-5,5
+5,10
@@
#define unlikely(x) __builtin_expect((x), 0)
#define weak_alias(name) __attribute__((weak, alias(name)))
#define unlikely(x) __builtin_expect((x), 0)
#define weak_alias(name) __attribute__((weak, alias(name)))
+#define weak __attribute__((weak))
#define noret __attribute__((noreturn))
#define noret __attribute__((noreturn))
+
+#define stringify(v) #v
+#define stringify__(v) stringify(v)
+
#endif /* __LUNAIX_COMPILER_H */
#endif /* __LUNAIX_COMPILER_H */