From 99b365e260db8b7536d10fafbc7be950251780af Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 1 Apr 2022 04:31:26 +0100 Subject: [PATCH] Stupid bug AGAIN --- Include/AuroraForEach.hpp | 8 ++++++++ forEach.js | 1 + 2 files changed, 9 insertions(+) diff --git a/Include/AuroraForEach.hpp b/Include/AuroraForEach.hpp index 95f663e..610ffea 100644 --- a/Include/AuroraForEach.hpp +++ b/Include/AuroraForEach.hpp @@ -312,6 +312,7 @@ #define _ZAUFE_FE_0_2(expandable) #define _ZAUFE_FE_1_2(expandable) #define _ZAUFE_FE_2_FIRST_2(first, second, ...) +#define _ZAUFE_FE_1_FIRST_2(first, second) #define _ZAUFE_FE_2_2(expandable, X0, X1) expandable(X0, X1) #define _ZAUFE_FE_3_THAT_2(expandable, ctx, X0, X1) expandable(ctx, X0, X1) #define _ZAUFE_FE_3_FIRST_2(first, second, X0, X1) first(X0, X1) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_2(second)) @@ -505,6 +506,7 @@ #define _ZAUFE_FE_1_3(expandable, empty) #define _ZAUFE_FE_2_3(expandable) #define _ZAUFE_FE_3_FIRST_3(first, second, ...) +#define _ZAUFE_FE_2_FIRST_3(first, second) #define _ZAUFE_FE_3_3(expandable, X0, X1, X2) expandable(X0, X1, X2) #define _ZAUFE_FE_4_THAT_3(expandable, ctx, X0, X1, X2) expandable(ctx, X0, X1, X2) #define _ZAUFE_FE_4_FIRST_3(first, second, X0, X1, X2) first(X0, X1, X2) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_3(second)) @@ -638,6 +640,7 @@ #define _ZAUFE_FE_1_4(expandable, empty) #define _ZAUFE_FE_3_4(expandable) #define _ZAUFE_FE_4_FIRST_4(first, second, ...) +#define _ZAUFE_FE_3_FIRST_4(first, second) #define _ZAUFE_FE_4_4(expandable, X0, X1, X2, X3) expandable(X0, X1, X2, X3) #define _ZAUFE_FE_5_THAT_4(expandable, ctx, X0, X1, X2, X3) expandable(ctx, X0, X1, X2, X3) #define _ZAUFE_FE_5_FIRST_4(first, second, X0, X1, X2, X3) first(X0, X1, X2, X3) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_4(second)) @@ -738,6 +741,7 @@ #define _ZAUFE_FE_1_5(expandable, empty) #define _ZAUFE_FE_4_5(expandable) #define _ZAUFE_FE_5_FIRST_5(first, second, ...) +#define _ZAUFE_FE_4_FIRST_5(first, second) #define _ZAUFE_FE_5_5(expandable, X0, X1, X2, X3, X4) expandable(X0, X1, X2, X3, X4) #define _ZAUFE_FE_6_THAT_5(expandable, ctx, X0, X1, X2, X3, X4) expandable(ctx, X0, X1, X2, X3, X4) #define _ZAUFE_FE_6_FIRST_5(first, second, X0, X1, X2, X3, X4) first(X0, X1, X2, X3, X4) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_5(second)) @@ -820,6 +824,7 @@ #define _ZAUFE_FE_1_6(expandable, empty) #define _ZAUFE_FE_5_6(expandable) #define _ZAUFE_FE_6_FIRST_6(first, second, ...) +#define _ZAUFE_FE_5_FIRST_6(first, second) #define _ZAUFE_FE_6_6(expandable, X0, X1, X2, X3, X4, X5) expandable(X0, X1, X2, X3, X4, X5) #define _ZAUFE_FE_7_THAT_6(expandable, ctx, X0, X1, X2, X3, X4, X5) expandable(ctx, X0, X1, X2, X3, X4, X5) #define _ZAUFE_FE_7_FIRST_6(first, second, X0, X1, X2, X3, X4, X5) first(X0, X1, X2, X3, X4, X5) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_6(second)) @@ -890,6 +895,7 @@ #define _ZAUFE_FE_1_7(expandable, empty) #define _ZAUFE_FE_6_7(expandable) #define _ZAUFE_FE_7_FIRST_7(first, second, ...) +#define _ZAUFE_FE_6_FIRST_7(first, second) #define _ZAUFE_FE_7_7(expandable, X0, X1, X2, X3, X4, X5, X6) expandable(X0, X1, X2, X3, X4, X5, X6) #define _ZAUFE_FE_8_THAT_7(expandable, ctx, X0, X1, X2, X3, X4, X5, X6) expandable(ctx, X0, X1, X2, X3, X4, X5, X6) #define _ZAUFE_FE_8_FIRST_7(first, second, X0, X1, X2, X3, X4, X5, X6) first(X0, X1, X2, X3, X4, X5, X6) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_7(second)) @@ -951,6 +957,7 @@ #define _ZAUFE_FE_1_8(expandable, empty) #define _ZAUFE_FE_7_8(expandable) #define _ZAUFE_FE_8_FIRST_8(first, second, ...) +#define _ZAUFE_FE_7_FIRST_8(first, second) #define _ZAUFE_FE_8_8(expandable, X0, X1, X2, X3, X4, X5, X6, X7) expandable(X0, X1, X2, X3, X4, X5, X6, X7) #define _ZAUFE_FE_9_THAT_8(expandable, ctx, X0, X1, X2, X3, X4, X5, X6, X7) expandable(ctx, X0, X1, X2, X3, X4, X5, X6, X7) #define _ZAUFE_FE_9_FIRST_8(first, second, X0, X1, X2, X3, X4, X5, X6, X7) first(X0, X1, X2, X3, X4, X5, X6, X7) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_8(second)) @@ -1006,6 +1013,7 @@ #define _ZAUFE_FE_1_9(expandable, empty) #define _ZAUFE_FE_8_9(expandable) #define _ZAUFE_FE_9_FIRST_9(first, second, ...) +#define _ZAUFE_FE_8_FIRST_9(first, second) #define _ZAUFE_FE_9_9(expandable, X0, X1, X2, X3, X4, X5, X6, X7, X8) expandable(X0, X1, X2, X3, X4, X5, X6, X7, X8) #define _ZAUFE_FE_10_THAT_9(expandable, ctx, X0, X1, X2, X3, X4, X5, X6, X7, X8) expandable(ctx, X0, X1, X2, X3, X4, X5, X6, X7, X8) #define _ZAUFE_FE_10_FIRST_9(first, second, X0, X1, X2, X3, X4, X5, X6, X7, X8) first(X0, X1, X2, X3, X4, X5, X6, X7, X8) _ZAUFE_FE_EXPAND(_ZAUFE_FE_0_9(second)) diff --git a/forEach.js b/forEach.js index 7e9b79f..ce426a3 100644 --- a/forEach.js +++ b/forEach.js @@ -109,6 +109,7 @@ forN(kMaxPairedElements, function(nElements) { if (I2 == nElements) { textBuffer += `#define _ZAUFE_FE_${I2}_FIRST${suffix}(first, second, ...) \n` + textBuffer += `#define _ZAUFE_FE_${i}_FIRST${suffix}(first, second) \n` } else if (i == nElements) {