comparison Applications/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py @ 2001:e943a84da9ac

creation of text annotations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Nov 2022 14:56:35 +0100
parents 7053b8a0aaec
children 07964689cb0b
comparison
equal deleted inserted replaced
2000:3e9ced39cd1b 2001:e943a84da9ac
172 argType = child.type.spelling 172 argType = child.type.spelling
173 if argType == 'int': 173 if argType == 'int':
174 arg['type'] = "'int'" 174 arg['type'] = "'int'"
175 elif argType == 'const char *': 175 elif argType == 'const char *':
176 arg['type'] = "'string'" 176 arg['type'] = "'string'"
177 elif argType == 'double':
178 arg['type'] = "'double'"
177 else: 179 else:
178 raise Exception('Unknown type for argument "%s" in function "%s()": %s' % 180 raise Exception('Unknown type for argument "%s" in function "%s()": %s' %
179 (child.displayname, node.spelling, argType)) 181 (child.displayname, node.spelling, argType))
180 182
181 f['args'].append(arg) 183 f['args'].append(arg)