From: Arnaud Vrac Date: Mon, 19 Dec 2011 01:39:10 +0000 (+0100) Subject: Parse prototypes with no parameters in gltxt.py X-Git-Tag: 2.0_alpha^2~378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19bf4ed15d46f09647bdd5c79cf3cd4db2233f62;p=tools%2Fapitrace.git Parse prototypes with no parameters in gltxt.py --- diff --git a/specs/scripts/gltxt.py b/specs/scripts/gltxt.py index b30b87c..07b7046 100755 --- a/specs/scripts/gltxt.py +++ b/specs/scripts/gltxt.py @@ -194,6 +194,9 @@ class TxtParser(LineParser): def parse_arg(self): type = self.parse_type() + if self.tokens[0] == ')': + assert type == 'Void' + return '' name = self.tokens.pop(0) return '(%s, "%s")' % (type, name)