summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/SimObject.py4
-rw-r--r--src/python/m5/params.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 710f85fde..00c18976d 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -126,7 +126,7 @@ def default_swig_objdecls(cls, code):
code('{};')
for ns in reversed(namespaces):
- code('/* namespace $ns */ }')
+ code('} // namespace $ns')
def public_value(key, value):
return key.startswith('_') or \
@@ -390,7 +390,7 @@ class MetaSimObject(type):
code('namespace $ns {')
code('class $0;', class_path[-1])
for ns in reversed(class_path[:-1]):
- code('/* namespace $ns */ }')
+ code('} // namespace $ns')
code()
for param in params:
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 0093a411d..2c3925d99 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1004,7 +1004,7 @@ namespace Enums {
code.dedent(2)
code('''
};
-/* namespace Enums */ }
+} // namespace Enums
''')
# Base class for enum types.