mojoshader_preprocessor.c
changeset 578 6c8f73c845e7
parent 568 647b13e64468
child 582 637dcfff28d8
--- a/mojoshader_preprocessor.c	Thu Feb 12 02:37:59 2009 -0500
+++ b/mojoshader_preprocessor.c	Thu Feb 12 02:41:43 2009 -0500
@@ -603,8 +603,8 @@
 } // build_errors
 
 
-const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *source,
-                             unsigned int sourcelen,
+const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *filename,
+                             const char *source, unsigned int sourcelen,
                              const MOJOSHADER_preprocessorDefine **defines,
                              unsigned int define_count,
                              MOJOSHADER_includeOpen include_open,
@@ -626,8 +626,7 @@
 include_open = (MOJOSHADER_includeOpen) 0x1;
 include_close = (MOJOSHADER_includeClose) 0x1;
 
-    const char *fname = "*";  // !!! FIXME
-    Preprocessor *pp = preprocessor_start(fname, source, sourcelen,
+    Preprocessor *pp = preprocessor_start(filename, source, sourcelen,
                                           include_open, include_close,
                                           defines, define_count, m, f, d);