Skip to content

Runtime type mismatch: throw error if NDBEUG is unset? #857

@jackwasey

Description

@jackwasey

While debugging, I get runtime errors like:

Not compatible with requested type: [type=character; target=integer]

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions