We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a4094 commit e93769dCopy full SHA for e93769d
src/dynapi/gendynapi.py
@@ -215,11 +215,19 @@ def main():
215
b = match.group(2).strip()
216
c = match.group(3).strip()
217
218
- # cut-off last word to get callback name
219
- d = b.rsplit('*', 1)[0]
+ try:
+ (param_type, param_name) = b.rsplit('*', 1)
220
+ except:
221
+ param_type = t;
222
+ param_name = "param_name_not_specified"
223
+
224
+ # bug rsplit ??
225
+ if param_name == "":
226
227
228
# recontruct a callback name for future parsing
- func_param_type.append(a + " (" + d + "*REWRITE_NAME)" + c)
229
+ func_param_type.append(a + " (" + param_type.strip() + " *REWRITE_NAME)" + c)
230
+ func_param_name.append(param_name.strip())
231
232
continue
233
0 commit comments