-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime type mismatch: throw error if NDBEUG is unset? #857
Comments
Not sure. |
Yes, I think so, but they compile (and I believe default R installs, also) use -DNDEBUG, so what I imagined was just Rcpp-based package developers enabling it while debugging. |
You could try with one or two and see -- some things "they" check are text based, some look at the shared library resulting from it. I think you are correct in that this test is based on the shared library. |
Ah, I see. Will take a look. |
Fixed via #860 |
While debugging, I get runtime errors like:
Would it be possible for Rcpp to hard-stop, like C++ assert does, in the case that compilation uses
-UNDEBUG
? This would be useful for debugging with gdb or lldb, and give a line number in the source code where the problem was encountered.The text was updated successfully, but these errors were encountered: