Index: tools/json_schema_compiler/cpp_util.py |
diff --git a/tools/json_schema_compiler/cpp_util.py b/tools/json_schema_compiler/cpp_util.py |
index 1e7c3707883bccdce8fd80279e210ad0620bee36..64ac9b05c187bd609671467dbe466de0fecdf536 100644 |
--- a/tools/json_schema_compiler/cpp_util.py |
+++ b/tools/json_schema_compiler/cpp_util.py |
@@ -110,6 +110,8 @@ def OpenNamespace(namespace): |
"""Get opening root namespace declarations. |
""" |
c = Code() |
+ if namespace == '': |
not at google - send to devlin
2014/01/23 18:26:47
ok, add a comment then.
# In lieu of GYP supporti
|
+ return c |
for component in namespace.split('::'): |
c.Append('namespace %s {' % component) |
return c |
@@ -119,6 +121,8 @@ def CloseNamespace(namespace): |
"""Get closing root namespace declarations. |
""" |
c = Code() |
+ if namespace == '': |
+ return c |
for component in reversed(namespace.split('::')): |
c.Append('} // namespace %s' % component) |
return c |