Skip to content

Commit

Permalink
Fix I@ in timers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Cole committed Dec 10, 2023
1 parent d2bb07f commit 3ac3c88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions YSI_Coding/y_timers/y_timers_macros.inc
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ Optional plugins:
#define @Yj:%0(%5){%1(%8&%2&%3)%9} @Yj:%0(%5){%1(%8:YSI_gMallocMemory[%2]%3)%9}
#define @Yv&%0& %0

#define DEFER__%0(%1) (J@=1,I@=-1,Timer:_yT@%0(%1))
#define DEFER__%0(%1) (J@=1,I@=-1,Timer:@Yq:_yT@%0(%1))

#define REPEAT__%0(%1) (J@=0,I@=-1,Timer:_yT@%0(%1))
#define REPEAT__%0(%1) (J@=0,I@=-1,Timer:@Yq:_yT@%0(%1))

// Detect explicit repeat counts.
#define J@=0,I@=-1,Timer:_yT@[%4] J@=(%4),I@=-1,Timer:_yT@
#define J@=0,I@=-1,Timer:@Yq:_yT@[%4] J@=(%4),I@=-1,Timer:@Yq:_yT@

// Custom time.
#define Timer:%0[%1](%2) I@=%1,Timer:%0(%2)
#define @Yq:%0[%1](%2) I@=%1,%0(%2)

#define STOP__%0; {_Timer_F((%0),1);}

Expand Down
2 changes: 1 addition & 1 deletion YSI_Core/y_core/y_core_entry.inc
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ stock _YSI_ConstMod(const &var, const val)
#endif

#if defined YSI_YES_MODE_CACHE
#include "..\..\YSI_Server\y_thirdpartyinclude\y3_thirdpartyinclude_entry"
#include "..\..\YSI_Server\y_thirdpartyinclude\y_thirdpartyinclude_entry"
#endif

/*-------------------------------------------------------------------------*//**
Expand Down

0 comments on commit 3ac3c88

Please sign in to comment.