Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preprocessor now supports macros with parameters.
  • Loading branch information
icculus committed Feb 20, 2009
1 parent 0208b08 commit 8e0abb7
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 62 deletions.
10 changes: 10 additions & 0 deletions mojoshader_internal.h
Expand Up @@ -387,6 +387,15 @@ typedef struct Conditional
struct Conditional *next;
} Conditional;

typedef struct Define
{
const char *identifier;
const char *definition;
const char **parameters;
unsigned int paramcount;
struct Define *next;
} Define;

typedef struct IncludeState
{
const char *filename;
Expand All @@ -403,6 +412,7 @@ typedef struct IncludeState
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 8e0abb7

Please sign in to comment.