From: Matthias Kruk Date: Fri, 6 Sep 2019 06:04:06 +0000 (+0900) Subject: Add FEATURE macro to config.h X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=8e563589721b07084f22bffd12f332e273e8404d;p=corax Add FEATURE macro to config.h --- diff --git a/config.h b/config.h index 69b7f4f..5454eb7 100644 --- 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