]> git.corax.cc Git - corax/commitdiff
Add FEATURE macro to config.h
authorMatthias Kruk <m@m10k.eu>
Fri, 6 Sep 2019 06:04:06 +0000 (15:04 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 6 Sep 2019 06:04:06 +0000 (15:04 +0900)
config.h

index 69b7f4f8a1ccea5366ad6fc91bcf336c55778b63..5454eb72dba5578f5ddd418454ea6dbec78d22b2 100644 (file)
--- a/config.h
+++ b/config.h
@@ -19,6 +19,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#define FEATURE(x) (defined(CONFIG_##x) && CONFIG_##x == 1)
+
 #define CONFIG_KERNEL_STACK_SIZE    4096
 #define CONFIG_USER_STACK_SIZE      4096