1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/test_utils/interactive_sync: allow module disabling

If the header file is included test_utils_interactive_sync() will
be defined as an empty function when the module is not used, e.g.
added to DISABLE_MODULES in tests/*
This commit is contained in:
Francisco Molina 2020-02-28 17:53:17 +01:00
parent 2ebf1d68b4
commit 091ab15912
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -32,7 +32,11 @@ extern "C" {
* @details Wait for a 's' character to return
*
*/
#ifdef MODULE_TEST_UTILS_INTERACTIVE_SYNC
void test_utils_interactive_sync(void);
#else
static inline void test_utils_interactive_sync(void) {}
#endif
#ifdef __cplusplus