mojoshader_preprocessor.c
changeset 1142 7b554e065321
parent 1129 908551a4334c
child 1182 179ffe99c57f
equal deleted inserted replaced
1141:77468a2a9165 1142:7b554e065321
    57     MOJOSHADER_includeClose close_callback;
    57     MOJOSHADER_includeClose close_callback;
    58     MOJOSHADER_malloc malloc;
    58     MOJOSHADER_malloc malloc;
    59     MOJOSHADER_free free;
    59     MOJOSHADER_free free;
    60     void *malloc_data;
    60     void *malloc_data;
    61 } Context;
    61 } Context;
    62 
       
    63 // Microsoft's preprocessor has some quirks. In some ways, it doesn't work
       
    64 //  like you'd expect a C preprocessor to function.
       
    65 #ifndef MATCH_MICROSOFT_PREPROCESSOR
       
    66 #define MATCH_MICROSOFT_PREPROCESSOR 1
       
    67 #endif
       
    68 
    62 
    69 
    63 
    70 // Convenience functions for allocators...
    64 // Convenience functions for allocators...
    71 
    65 
    72 static inline void out_of_memory(Context *ctx)
    66 static inline void out_of_memory(Context *ctx)