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
proctestOneInput: cint {.exportc.} =iftrue:
raisenewException(ValueError, "my my my")
proccustomMutator(): int {.exportc.} =try:
discardexcept:
echo"customMutator"quit(1)
maths.c
#include"fib.h"#include<stdio.h>intmain(void)
{
NimMain();
testOneInput();
// the following should not be calledcustomMutator();
return0;
}
Current Output
with --gc:arc
customMutator
Expected Output
without
Error: unhandled exception: my my my [ValueError]
Possible Solution
Something to do with nimTestErrorFlag() not being called.
$ nim -v
1.5.1
The text was updated successfully, but these errors were encountered:
The following is the modified example from https://nim-lang.github.io/Nim/backends.html#interfacing-backend-code-calling-nim test with and without
--gc:arc
to see the difference.Example
fib.nim
maths.c
Current Output
with
--gc:arc
Expected Output
without
Possible Solution
Something to do with
nimTestErrorFlag()
not being called.The text was updated successfully, but these errors were encountered: