Skip to content
Permalink
Browse files
Don't make the MOJOSHADER_DO_INSTRUCTION_TABLE caller undef everythin…
…g after.
  • Loading branch information
icculus committed Jul 20, 2020
1 parent 1d735fd commit 13434162abbc69b67088f4d55faebe95ea6c478d
Showing with 5 additions and 7 deletions.
  1. +0 −4 mojoshader.c
  2. +0 −3 mojoshader_assembler.c
  3. +5 −0 mojoshader_internal.h
@@ -1985,10 +1985,6 @@ static const Instruction instructions[] =

#define MOJOSHADER_DO_INSTRUCTION_TABLE 1
#include "mojoshader_internal.h"
#undef MOJOSHADER_DO_INSTRUCTION_TABLE

#undef INSTRUCTION
#undef INSTRUCTION_STATE
};


@@ -1096,9 +1096,6 @@ static const Instruction instructions[] =
#define INSTRUCTION(op, opstr, slots, a, t) { opstr, parse_args_##a },
#define MOJOSHADER_DO_INSTRUCTION_TABLE 1
#include "mojoshader_internal.h"
#undef MOJOSHADER_DO_INSTRUCTION_TABLE
#undef INSTRUCTION
#undef INSTRUCTION_STATE
};


@@ -870,6 +870,11 @@ INSTRUCTION(TEXLDD, "TEXLDD", 3, DSSSS, MOJOSHADER_TYPE_PIXEL)
INSTRUCTION_STATE(SETP, "SETP", 1, DSS, MOJOSHADER_TYPE_ANY)
INSTRUCTION_STATE(TEXLDL, "TEXLDL", 2, DSS, MOJOSHADER_TYPE_ANY)
INSTRUCTION_STATE(BREAKP, "BREAKP", 3, S, MOJOSHADER_TYPE_ANY)

#undef MOJOSHADER_DO_INSTRUCTION_TABLE
#undef INSTRUCTION
#undef INSTRUCTION_STATE

#endif

// end of mojoshader_internal.h ...

0 comments on commit 1343416

Please sign in to comment.