ECC: C preprocessor only wipe off '\' concatenated macro defines.
authorjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 30 Jan 2008 02:38:23 +0000 (02:38 +0000)
committerjlin16 <jlin16@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 30 Jan 2008 02:38:23 +0000 (02:38 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@992 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Ecc/CodeFragmentCollector.py

index 2f9798d..f902ad9 100644 (file)
@@ -352,7 +352,8 @@ class CodeFragmentCollector:
                         continue\r
                     else:\r
                         PPDirectiveObj.Content += self.__CurrentChar()\r
-                    self.__SetCurrentCharValue(T_CHAR_SPACE)\r
+                    if PPExtend:\r
+                        self.__SetCurrentCharValue(T_CHAR_SPACE)\r
                 else:\r
                     CommentObj.Content += self.__CurrentChar()\r
 #                self.__SetCurrentCharValue(T_CHAR_SPACE)\r