[FIX] Linting when using conditionnal directives
fix linting when using conditionnal directives
#define LUOS_ASSERTION
-#if defined UNIT_TEST
+#if defined(UNIT_TEST)
extern void unittest_assert(char *file, uint32_t line);
#define LUOS_ASSERT(expr) \
if (!(expr)) \
@@ -24,10 +24,9 @@ extern void unittest_assert(char *file, uint32_t line);
if (!(expr)) \
Luos_assert(__FILE__, __LINE__)
#else
-#define LUOS_ASSERT(expr)
+#define LUOS_ASSERT(expr) ()
#endif
-
/* This structure is used to manage node assertion informations
*/
typedef struct __attribute__((__packed__))
@@ -43,7 +42,6 @@ typedef struct __attribute__((__packed__))
};
} luos_assert_t;
-
/*******************************************************************************
* Variables
******************************************************************************/
