Obsolete the old MACROS and MACROE convenience macros.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / USBTask.h
index 7c0917f..7205ea1 100644 (file)
                        #endif
 
                /* Macros: */
-                       #define HOST_TASK_NONBLOCK_WAIT(Duration, NextState) MACROS{ USB_HostState   = HOST_STATE_WaitForDevice; \
-                                                                                    WaitMSRemaining = (Duration);               \
-                                                                                    PostWaitState   = (NextState);              }MACROE
+                       #define HOST_TASK_NONBLOCK_WAIT(Duration, NextState) do { USB_HostState   = HOST_STATE_WaitForDevice; \
+                                                                                 WaitMSRemaining = (Duration);               \
+                                                                                 PostWaitState   = (NextState);              } while (0)
        #endif
 
        /* Disable C linkage for C++ Compilers: */