mojoshader_preprocessor.c
changeset 867 f5f491d2b82b
parent 865 4eb06464212d
child 869 5bd359b047f3
equal deleted inserted replaced
866:3fc643a4f742 867:f5f491d2b82b
  2100     ErrorList *errors = NULL;
  2100     ErrorList *errors = NULL;
  2101     int error_count = 0;
  2101     int error_count = 0;
  2102 
  2102 
  2103     if (!m) m = MOJOSHADER_internal_malloc;
  2103     if (!m) m = MOJOSHADER_internal_malloc;
  2104     if (!f) f = MOJOSHADER_internal_free;
  2104     if (!f) f = MOJOSHADER_internal_free;
       
  2105 
       
  2106 #if !MOJOSHADER_FORCE_INCLUDE_CALLBACKS
  2105     if (!include_open) include_open = MOJOSHADER_internal_include_open;
  2107     if (!include_open) include_open = MOJOSHADER_internal_include_open;
  2106     if (!include_close) include_close = MOJOSHADER_internal_include_close;
  2108     if (!include_close) include_close = MOJOSHADER_internal_include_close;
       
  2109 #endif
  2107 
  2110 
  2108     Preprocessor *pp = preprocessor_start(filename, source, sourcelen,
  2111     Preprocessor *pp = preprocessor_start(filename, source, sourcelen,
  2109                                           include_open, include_close,
  2112                                           include_open, include_close,
  2110                                           defines, define_count, 0, m, f, d);
  2113                                           defines, define_count, 0, m, f, d);
  2111 
  2114