forked from Monkestation/Monkestation2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Absolucy/plexora-bot-pr
meow
- Loading branch information
Showing
6 changed files
with
285 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// Until a condition is true, sleep, or until a certain amount of time has passed. | ||
/// Basically, UNTIL() but with a timeout. | ||
#define UNTIL_OR_TIMEOUT(Condition, Timeout) \ | ||
do { \ | ||
var/__end_time = REALTIMEOFDAY + (Timeout); \ | ||
UNTIL((Condition) || (REALTIMEOFDAY > __end_time)); \ | ||
} while(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.