We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8114b commit 3a2d67eCopy full SHA for 3a2d67e
src/components.c
@@ -28,6 +28,11 @@
28
#ifndef RT_MAIN_THREAD_PRIORITY
29
#define RT_MAIN_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 3)
30
#endif /* RT_MAIN_THREAD_PRIORITY */
31
+#if (RT_MAIN_THREAD_PRIORITY >= RT_THREAD_PRIORITY_MAX)
32
+#error "RT_MAIN_THREAD_PRIORITY must be < RT_THREAD_PRIORITY_MAX"
33
+#elif (RT_MAIN_THREAD_PRIORITY < 0)
34
+#error "RT_MAIN_THREAD_PRIORITY must be non-negative"
35
+#endif /* RT_MAIN_THREAD_PRIORITY range check */
36
#endif /* RT_USING_USER_MAIN */
37
38
#ifdef RT_USING_COMPONENTS_INIT
0 commit comments