| Index: tools/json_schema_compiler/util_cc_helper.py
|
| diff --git a/tools/json_schema_compiler/util_cc_helper.py b/tools/json_schema_compiler/util_cc_helper.py
|
| index 8d490ba5ba345877f1aea32a1765a5b3e9475985..df5b6de0f507444403bf16f86cbf6425f4d7f7fa 100644
|
| --- a/tools/json_schema_compiler/util_cc_helper.py
|
| +++ b/tools/json_schema_compiler/util_cc_helper.py
|
| @@ -77,3 +77,9 @@ class UtilCCHelper(object):
|
|
|
| def GetIncludePath(self):
|
| return '#include "tools/json_schema_compiler/util.h"'
|
| +
|
| + def GetValueTypeString(self, value, is_ptr=False):
|
| + call = '.GetType()'
|
| + if is_ptr:
|
| + call = '->GetType()'
|
| + return 'json_schema_compiler::util::ValueTypeToString(%s%s)' % (value, call)
|
|
|