[riot-notifications] [RIOT-OS/RIOT] Pr/tick conversion (#9026)

Joakim NohlgÄrd notifications at github.com
Thu Apr 26 12:12:56 CEST 2018


gebart commented on this pull request.



>  #include "div.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+/*
+ * As tick_conversion.h is included in multiple files ENABLE_DEBUG can not be
+ * used as it gets redefined "[-Werror]"
+ * Activate the debug print and enable module fmt in the project makefile as follow
+ *
+ * USEMODULE += fmt
+ * CFLAGS += -DENABLE_DEBUG_PRINT_TICK_CONVERSION=1
+ * */
+#ifndef ENABLE_DEBUG_PRINT_TICK_CONVERSION
+#define ENABLE_DEBUG_PRINT_TICK_CONVERSION   (0)
+#endif
+
+#if ENABLE_DEBUG_PRINT_TICK_CONVERSION
+#ifndef MODULE_FMT
+#error "Module fmt is necessary to ENABLE_DEBUG_TICKS set 'USEMODULE += fmt' \

Or just shorten the message, add more information in a code comment near this line. The error message will have the file name and line number so it's easy to find

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/9026#discussion_r184337895
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180426/67aff2db/attachment.html>


More information about the notifications mailing list