aboutsummaryrefslogtreecommitdiff
path: root/generator.py
diff options
context:
space:
mode:
authorDustin Graves <dustin@lunarg.com>2016-05-04 12:56:08 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-05-09 11:46:23 -0600
commitfd533e358307f6264fb7824a5367eb243df2e85e (patch)
tree81363ee6b903d50ab36bacaaa4fa1b74b206c6bf /generator.py
parent56dba6a326542cb8345232cbcbc973f20bbf573b (diff)
downloadusermoji-fd533e358307f6264fb7824a5367eb243df2e85e.tar.xz
layers: Add parameter_validation namespace
Add parameter_validation namespace for utility functions. Namespace will be extended to include core layer functions in a future update. Change-Id: I0929f5caacbf3e1b4509f051ea020566cce44e3e
Diffstat (limited to 'generator.py')
-rw-r--r--generator.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index d44bc621..4328ed4d 100644
--- a/generator.py
+++ b/generator.py
@@ -2906,10 +2906,16 @@ class ParamCheckerOutputGenerator(OutputGenerator):
write('#ifndef UNUSED_PARAMETER', file=self.outFile)
write('#define UNUSED_PARAMETER(x) (void)(x)', file=self.outFile)
write('#endif // UNUSED_PARAMETER', file=self.outFile)
+ #
+ # Namespace
+ self.newline()
+ write('namespace parameter_validation {', file = self.outFile)
def endFile(self):
# C-specific
- # Finish C++ wrapper and multiple inclusion protection
self.newline()
+ # Namespace
+ write('} // namespace parameter_validation', file = self.outFile)
+ # Finish C++ wrapper and multiple inclusion protection
if (self.genOpts.protectFile and self.genOpts.filename):
self.newline()
write('#endif', file=self.outFile)