You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat test.hvoid foobar(uint64_t[2]);
$ ~/.nimble/bin/toast -n test.h
# Generated @ 2020-12-14T22:26:39+01:00
# Command line:
# /home/akavel/.nimble/pkgs/nimterop-0.6.13/nimterop/toast -n test.htoast.nim(227) toastcligen.nim(754) cligenScopecligen.nim(672) dispatchmaintoast.nim(150) maintoast.nim(30) processast2.nim(1944) parseNimast2.nim(1829) searchTreeast2.nim(1809) processNodeast2.nim(1749) addDeclast2.nim(1618) addProcast2.nim(660) newFormalParamsast2.nim(504) newIdentDefcomphelp.nim(95) getNameInfogetters.nim(219) getIdentifiergetters.nim(178) checkIdentifierassertions.nim(29) failedAssertImplassertions.nim(22) raiseAssertfatal.nim(49) sysFatalError: unhandled exception: getters.nim(178, 5) `not name[0].isDigit()` Identifier 'foobar:2' (nskField) starts with a digit '2' which Nim does not allow. Use toast flag '--prefix' or 'cPlugin()' to modify. [AssertionError]
The library I'm trying to link uses the pattern shown above, and I don't know how to workaround this. I checked that non-array unnamed args, as well as array named args, both seem to work separately - but using them together fails:
void foobar(uint64_t zz[2]); // ok
void foobar(uint64_t); // ok
void foobar(uint64_t[2]); // ERROR
The text was updated successfully, but these errors were encountered:
akavel
added a commit
to akavel/nimterop
that referenced
this issue
Dec 18, 2020
I'm getting error like below:
The library I'm trying to link uses the pattern shown above, and I don't know how to workaround this. I checked that non-array unnamed args, as well as array named args, both seem to work separately - but using them together fails:
The text was updated successfully, but these errors were encountered: