Skip to content

Commit

Permalink
Serious reworking of preprocessor macro replacement code.
Browse files Browse the repository at this point in the history
Appears to handles the various oddities on might encounter in macro salsa, now.
  • Loading branch information
icculus committed Mar 12, 2010
1 parent 6903d18 commit ad005a5
Show file tree
Hide file tree
Showing 2 changed files with 311 additions and 302 deletions.
3 changes: 1 addition & 2 deletions mojoshader_internal.h
Expand Up @@ -461,6 +461,7 @@ typedef struct Define
{
const char *identifier;
const char *definition;
const char *original;
const char **parameters;
int paramcount;
struct Define *next;
Expand All @@ -476,14 +477,12 @@ typedef struct IncludeState
Token tokenval;
int pushedback;
const unsigned char *lexer_marker;
int is_macro;
int report_whitespace;
int asm_comments;
unsigned int orig_length;
unsigned int bytes_left;
unsigned int line;
Conditional *conditional_stack;
Define *defines; // temp defines for macros with parameters.
MOJOSHADER_includeClose close_callback;
struct IncludeState *next;
} IncludeState;
Expand Down

0 comments on commit ad005a5

Please sign in to comment.