Sherm Pendley <[EMAIL PROTECTED]> writes: >Is there a more direct XS equivalent to warnings::enabled(),
Not that I am aware of, but this isn't an area I am very familiar with. Looking at the perl code for enabled and its helper __chk I doubt something that complicated has been also implemented in C code. However warnings.h _does_ define the API the core uses to test the essentials of warnings. So you can write if (ckWARN( WARN_UNINITIALIZED )) { .... } >or should >I call the Perl version? If you do beware the fact that an XS call does not create a "caller" context. Which is why ckWARN() in XS tests caller's context... > >sherm-- > >Cocoa programming in Perl: http://camelbones.sourceforge.net >Hire me! My resume: http://www.dot-app.org