Preprocessor: Fixed macro arguments prepended with > 1 char of whitespace.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 16 Nov 2010 13:51:21 -0500
changeset 953 ebcde4f1e376
parent 952 7e7d5737f9a6
child 954 13919266d1ec
Preprocessor: Fixed macro arguments prepended with > 1 char of whitespace.
mojoshader_preprocessor.c
--- a/mojoshader_preprocessor.c	Mon Nov 15 17:43:01 2010 -0500
+++ b/mojoshader_preprocessor.c	Tue Nov 16 13:51:21 2010 -0500
@@ -1394,7 +1394,8 @@
                 // don't add whitespace to the start, so we recognize
                 //  void calls correctly.
                 origexpr = expr = " ";
-                origexprlen = (buffer_size(buffer) == 0) ? 0 : 1;
+                origexprlen = (buffer_size(origbuffer) == 0) ? 0 : 1;
+                exprlen = (buffer_size(buffer) == 0) ? 0 : 1;
             } // else if
 
             else if (t == TOKEN_IDENTIFIER)