mojoshader_assembler.c
changeset 611 8c2ee1a97ee1
parent 606 63e7a66ac320
child 612 72ccfe69eaf1
--- a/mojoshader_assembler.c	Fri Feb 13 09:22:20 2009 -0500
+++ b/mojoshader_assembler.c	Fri Feb 13 10:15:36 2009 -0500
@@ -1468,12 +1468,10 @@
                               MOJOSHADER_includeClose include_close,
                               MOJOSHADER_malloc m, MOJOSHADER_free f, void *d)
 {
-    if (m == NULL) m = MOJOSHADER_internal_malloc;
-    if (f == NULL) f = MOJOSHADER_internal_free;
-
-    // !!! FIXME
-    if (include_open == NULL) include_open = (MOJOSHADER_includeOpen) 0x1;
-    if (include_close == NULL) include_close = (MOJOSHADER_includeClose) 0x1;
+    if (!m) m = MOJOSHADER_internal_malloc;
+    if (!f) f = MOJOSHADER_internal_free;
+    if (!include_open) include_open = MOJOSHADER_internal_include_open;
+    if (!include_close) include_close = MOJOSHADER_internal_include_close;
 
     Context *ctx = (Context *) m(sizeof (Context), d);
     if (ctx == NULL)