Carp and Confess in XS

Matts on 2003-01-08T20:55:32

XS supports warn() and croak() using varargs style parameters (not a lot of XS newbies know that, but it's very useful). But XS doesn't support carp() and confess(), because getting backtraces in C has previously only been the realm of the debugger.

However I just discovered the glibc backtrace functions. Very interesting indeed.


GLibc Only Though

Dom2 on 2003-01-09T08:18:07

I would imagine that they're pretty non portable, possibly even amongst different Linux architectures.

Use 'em by all means, but make sure they're only turned on in your development mode...

-Dom