1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

remove task from declare_taskif

This commit is contained in:
andreas
2023-10-27 20:29:16 +02:00
parent 34dd3434fe
commit a6c1511298
4 changed files with 9 additions and 10 deletions

View File

@@ -234,7 +234,7 @@ class GwApi{
*
*
*/
#define DECLARE_TASKIF_IMPL(task,type) \
#define DECLARE_TASKIF_IMPL(type) \
template<> \
inline bool GwApi::TaskInterfaces::set(const type & v) {\
return iset(__FILE__,#type,GwApi::TaskInterfaces::Ptr(new type(v))); \
@@ -250,6 +250,6 @@ class GwApi{
return type(*tp); \
}
#ifndef DECLARE_TASKIF
#define DECLARE_TASKIF(task,type) DECLARE_TASKIF_IMPL(task,type)
#define DECLARE_TASKIF(type) DECLARE_TASKIF_IMPL(type)
#endif
#endif