diff options
Diffstat (limited to 'BaseTools/Source/Python/Common/ToolDefClassObject.py')
| -rw-r--r-- | BaseTools/Source/Python/Common/ToolDefClassObject.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Common/ToolDefClassObject.py b/BaseTools/Source/Python/Common/ToolDefClassObject.py index afc20a3c17..e8dd798f02 100644 --- a/BaseTools/Source/Python/Common/ToolDefClassObject.py +++ b/BaseTools/Source/Python/Common/ToolDefClassObject.py @@ -108,6 +108,10 @@ class ToolDefClassObject(object): if Line == "" or Line[0] == '#':
continue
+ if '#' in Line:
+ EdkLogger.error("tools_def.txt parser", FILE_PARSE_FAILURE,
+ "tools_def.txt: Inline comments are not allowed. Line: " + str(Index + 1))
+
if Line.startswith("!include"):
IncFile = Line[8:].strip()
Done, IncFile = self.ExpandMacros(IncFile)
|
