summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2017-08-15 11:16:05 -0400
committerGitHub <noreply@github.com>2017-08-15 11:16:05 -0400
commit4f47fa1d365bbd75f9b661e355b2aa85a594716e (patch)
tree6f48a2f9abaf5a2aebde86fe5c480605fc85a6e1 /tools
parentdf536a662a716b970c65589c1af97f504eb3eeb0 (diff)
parent2b99ec42d0c01579f3ff7373c01570c15e5e2385 (diff)
downloadsdl_core-4f47fa1d365bbd75f9b661e355b2aa85a594716e.tar.gz
Merge branch 'develop' into SDL-0076_Support_For_Additional_Languages
Diffstat (limited to 'tools')
-rwxr-xr-xtools/InterfaceGenerator/generator/parsers/RPCBase.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/InterfaceGenerator/generator/parsers/RPCBase.py b/tools/InterfaceGenerator/generator/parsers/RPCBase.py
index 22f3fd2c2d..59edf4a9b3 100755
--- a/tools/InterfaceGenerator/generator/parsers/RPCBase.py
+++ b/tools/InterfaceGenerator/generator/parsers/RPCBase.py
@@ -548,8 +548,12 @@ class Parser(object):
"""
params, subelements, attrib = self._parse_base_item(element, "")
- params["is_mandatory"] = self._extract_optional_bool_attrib(
- attrib, "mandatory", True)
+ is_mandatory = self._extract_attrib(attrib, "mandatory")
+ if is_mandatory is None:
+ raise ParseError("'mandatory' is not specified for parameter '" +
+ params["name"] + "'")
+
+ params["is_mandatory"] = self._get_bool_from_string(is_mandatory)
scope = self._extract_attrib(attrib, "scope")
if scope is not None: