(sig)
| 108 | FUNC_CALL_ARGS = {} |
| 109 | |
| 110 | def set_sig(sig): |
| 111 | prefix, _, args = sig.partition("(") |
| 112 | args = args.rpartition(")")[0] |
| 113 | funcname = prefix.rpartition(" ")[-1] |
| 114 | args = [arg.strip() for arg in args.split(",")] |
| 115 | # We use {0} because 0 alone cannot be cast to complex on MSVC in C: |
| 116 | FUNC_CALL_ARGS[funcname] = ", ".join("(%s){0}" % arg for arg in args) |
| 117 | |
| 118 | |
| 119 | for file in [ |
no test coverage detected