mojoshader_internal.h
changeset 894 1847405a16c6
parent 865 4eb06464212d
child 907 ce28b304dbd0
equal deleted inserted replaced
893:e9f0f2feeb39 894:1847405a16c6
   459 
   459 
   460 typedef struct Define
   460 typedef struct Define
   461 {
   461 {
   462     const char *identifier;
   462     const char *identifier;
   463     const char *definition;
   463     const char *definition;
       
   464     const char *original;
   464     const char **parameters;
   465     const char **parameters;
   465     int paramcount;
   466     int paramcount;
   466     struct Define *next;
   467     struct Define *next;
   467 } Define;
   468 } Define;
   468 
   469 
   474     const char *token;
   475     const char *token;
   475     unsigned int tokenlen;
   476     unsigned int tokenlen;
   476     Token tokenval;
   477     Token tokenval;
   477     int pushedback;
   478     int pushedback;
   478     const unsigned char *lexer_marker;
   479     const unsigned char *lexer_marker;
   479     int is_macro;
       
   480     int report_whitespace;
   480     int report_whitespace;
   481     int asm_comments;
   481     int asm_comments;
   482     unsigned int orig_length;
   482     unsigned int orig_length;
   483     unsigned int bytes_left;
   483     unsigned int bytes_left;
   484     unsigned int line;
   484     unsigned int line;
   485     Conditional *conditional_stack;
   485     Conditional *conditional_stack;
   486     Define *defines;  // temp defines for macros with parameters.
       
   487     MOJOSHADER_includeClose close_callback;
   486     MOJOSHADER_includeClose close_callback;
   488     struct IncludeState *next;
   487     struct IncludeState *next;
   489 } IncludeState;
   488 } IncludeState;
   490 
   489 
   491 Token preprocessor_lexer(IncludeState *s);
   490 Token preprocessor_lexer(IncludeState *s);