| Index: tools/grit/grit/node/io.py
|
| diff --git a/tools/grit/grit/node/io.py b/tools/grit/grit/node/io.py
|
| index 00943af853f145032647cc1e0882e9a7cd486bde..17e5a6f06cc540cc8d5b1b420f55197eecb0b824 100644
|
| --- a/tools/grit/grit/node/io.py
|
| +++ b/tools/grit/grit/node/io.py
|
| @@ -40,11 +40,17 @@ class FileNode(base.Node):
|
| if not self.should_load_:
|
| return
|
|
|
| + root = self.GetRoot()
|
| + defs = {}
|
| + if hasattr(root, 'defines'):
|
| + defs = root.defines
|
| +
|
| xtb_file = file(self.GetFilePath())
|
| try:
|
| lang = xtb_reader.Parse(xtb_file,
|
| self.UberClique().GenerateXtbParserCallback(
|
| - self.attrs['lang'], debug=debug))
|
| + self.attrs['lang'], debug=debug),
|
| + defs=defs)
|
| except:
|
| print "Exception during parsing of %s" % self.GetFilePath()
|
| raise
|
|
|