| Index: tools/json_schema_compiler/h_generator.py
|
| diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
|
| index 9ce2868d3843ec5785ac536a9af7ab47daddbe13..b096f77e36a2d4e43ad4442c07c0befe7f1387e5 100644
|
| --- a/tools/json_schema_compiler/h_generator.py
|
| +++ b/tools/json_schema_compiler/h_generator.py
|
| @@ -160,12 +160,6 @@ class HGenerator(object):
|
| c = Code()
|
|
|
| if type_.functions:
|
| - # Types with functions are not instantiable in C++ because they are
|
| - # handled in pure Javascript and hence have no properties or
|
| - # additionalProperties.
|
| - if type_.properties:
|
| - raise NotImplementedError('\n'.join(model.GetModelHierarchy(type_)) +
|
| - '\nCannot generate both functions and properties on a type')
|
| c.Sblock('namespace %(classname)s {')
|
| for function in type_.functions.values():
|
| (c.Concat(self._GenerateFunction(function))
|
|
|