Stas Bekman wrote: > > I find myself using the following macro in my C/XS code, again and again: > > #ifdef USE_ITHREADS > #define cop_file PL_curcop->cop_file > #else > #define cop_file SvPVX(GvSV(PL_curcop->cop_filegv)) > #endif > > Does it make sense to introduce a public API macro (of course using an > appropriate macro name) and once it's added have it in ppport.h as well?
Like CopFILE() ? (wasn't this broken with ithreads, by the way) ?