Skip to content

Commit

Permalink
Don't make the MOJOSHADER_DO_INSTRUCTION_TABLE caller undef everythin…
Browse files Browse the repository at this point in the history
…g after.
  • Loading branch information
icculus committed Jul 20, 2020
1 parent 1d735fd commit 1343416
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions mojoshader.c
Expand Up @@ -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
};


Expand Down
3 changes: 0 additions & 3 deletions mojoshader_assembler.c
Expand Up @@ -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
};


Expand Down
5 changes: 5 additions & 0 deletions mojoshader_internal.h
Expand Up @@ -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 ...
Expand Down

0 comments on commit 1343416

Please sign in to comment.