Skip to content

Commit

Permalink
undefine redefined macros
Browse files Browse the repository at this point in the history
  • Loading branch information
mossheim committed Dec 16, 2018
1 parent 0cb3c88 commit 66c3b18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/JoshUGens/JoshGrainUGens.cpp
Expand Up @@ -6735,7 +6735,7 @@ inline float grain_in_at(Unit* unit, int index, int offset)
return IN0(index);
}


#undef GRAIN_BUF
#define GRAIN_BUF \
const SndBuf *buf; \
if (bufnum >= world->mNumSndBufs) { \
Expand Down Expand Up @@ -6812,6 +6812,7 @@ static inline bool getGrainWin(Unit * unit, float wintype, SndBuf *& window, con
return true;
}

#undef GRAIN_LOOP_BODY_4
#define GRAIN_LOOP_BODY_4 \
float amp = y1 * y1; \
phase = sc_gloop(phase, loopMax); \
Expand Down Expand Up @@ -6841,6 +6842,7 @@ static inline bool getGrainWin(Unit * unit, float wintype, SndBuf *& window, con
y2 = y1; \
y1 = y0;

#undef GRAIN_LOOP_BODY_2
#define GRAIN_LOOP_BODY_2 \
float amp = y1 * y1; \
phase = sc_gloop(phase, loopMax); \
Expand Down

0 comments on commit 66c3b18

Please sign in to comment.