Skip to content

Commit

Permalink
removed macro def
Browse files Browse the repository at this point in the history
  • Loading branch information
JelmerT committed Oct 21, 2019
1 parent af6980f commit ee39a04
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions games/017_Symon/src/symon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,6 @@
#include <hackerpet.h>
#include <algorithm>


/* Yield Sleep milliseconds with timeout
*
* Waits for the specified number of milliseconds, yielding while waiting.
* Uses millis() function, which overflows and returns to zero every ~49 days
*/
/* Yield Wait For with timeout
*
* Waits for a condition while yielding whenever the condition is not true.
* Passes the ret parameter whenever yielding.
*/
#define yield_wait_for_with_timeout(condition, timeout_time_in_milliseconds, ret)\
do { \
static unsigned long t1 = 0; \
t1 = millis(); \
while (!(condition) && (millis() - t1) \
< timeout_time_in_milliseconds) { \
yield(ret); \
} \
} while (0)


// Set this to the name of your player (dog, cat, etc.)
const char PlayerName[] = "Pet, Clever";

Expand Down

0 comments on commit ee39a04

Please sign in to comment.