Obsolete the old MACROS and MACROE convenience macros.

This commit is contained in:
Dean Camera 2014-09-14 11:45:02 +10:00
parent 6c8ebd70c7
commit 41634c4530
14 changed files with 91 additions and 91 deletions

View file

@ -186,9 +186,9 @@
#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: */