This commit is contained in:
Reece Wilson 2022-01-27 03:56:42 +00:00
parent e9d74d37ce
commit 3e3cbc5e93

View File

@ -80,7 +80,7 @@ forN(kMaxPairedElements, function(nElements) {
} else { } else {
ignoreList[`AU_FE_${i}${suffix}`] = true ignoreList[`AU_FE_${i}${suffix}`] = true
} }
var I2 = i + 1 var I2 = i + 1
// Similar to above // Similar to above
@ -89,7 +89,7 @@ forN(kMaxPairedElements, function(nElements) {
ignoreList[`AU_FE_${I2}_THAT${suffix}`] = true ignoreList[`AU_FE_${I2}_THAT${suffix}`] = true
} else if (i == nElements) { } else if (i == nElements) {
ignoreList[`AU_FE_${i}_THAT${suffix}`] = true ignoreList[`AU_FE_${i}_THAT${suffix}`] = true
textBuffer += `#define AU_FE_${I2}_THAT${suffix}(expandable, ctx, ${X}) expandable(ctx, ${X})\n` textBuffer += `#define AU_FE_${I2}_THAT${suffix}(expandable, ctx, ${X}) expandable(ctx, ${X})\n`
} else if ((i % nElements) == 0) { } else if ((i % nElements) == 0) {
var offByOne = iM1Translated + 1 var offByOne = iM1Translated + 1
if (i == nElements) { if (i == nElements) {
@ -102,16 +102,16 @@ forN(kMaxPairedElements, function(nElements) {
} else { } else {
ignoreList[`AU_FE_${I2}_THAT${suffix}`] = true ignoreList[`AU_FE_${I2}_THAT${suffix}`] = true
} }
ignoreList[`AU_FE_${suffix}_THAT${suffix}`] = true ignoreList[`AU_FE_${suffix}_THAT${suffix}`] = true
if (i == 1) { if (i == 1) {
textBuffer += `#define AU_FE_${i}_FIRST${suffix}(first, second) \n` textBuffer += `#define AU_FE_${i}_FIRST${suffix}(first, second) \n`
} }
if (i == nElements) { if (i == nElements) {
textBuffer += `#define AU_FE_${I2}_FIRST${suffix}(first, second, ${X}) first(${X}) AU_FE_EXPAND(AU_FE_${iM1Translated}${suffix}(second))\n` textBuffer += `#define AU_FE_${I2}_FIRST${suffix}(first, second, ${X}) first(${X}) AU_FE_EXPAND(AU_FE_${iM1Translated}${suffix}(second))\n`
} else if ((i % (nElements) == 0)) { } else if ((i % (nElements) == 0)) {
if (i == nElements) { if (i == nElements) {
ignoreList[`AU_FE_${I2}_FIRST${suffix}`] = true // ? dont question it ignoreList[`AU_FE_${I2}_FIRST${suffix}`] = true // ? dont question it
textBuffer += `#define AU_FE_${I2}_FIRST${suffix}(first, second, ${X}) first(${X}) AU_FE_EXPAND(AU_FE_${iM1Translated}${suffix}(second))\n` textBuffer += `#define AU_FE_${I2}_FIRST${suffix}(first, second, ${X}) first(${X}) AU_FE_EXPAND(AU_FE_${iM1Translated}${suffix}(second))\n`