diff --git a/parts/inc/call b/parts/inc/call index 351f8cc5..e4401ef3 100644 --- a/parts/inc/call +++ b/parts/inc/call @@ -51,7 +51,8 @@ __UNDEFINED__ PERL_LOADMOD_IMPORT_OPS 0x4 #if defined(PERL_USE_GCC_BRACE_GROUPS) # define D_PPP_CROAK_IF_ERROR(cond) ({ SV *_errsv; ((cond) && (_errsv = ERRSV) && (SvROK(_errsv) || SvTRUE(_errsv)) && (croak_sv(_errsv), 1)); }) #else -# define D_PPP_CROAK_IF_ERROR(cond) ((cond) && (SvROK(ERRSV) || SvTRUE(ERRSV)) && (croak_sv(ERRSV), 1)) + PERL_STATIC_INLINE void D_PPP_CROAK_IF_ERROR(int cond) { dTHX; SV *errsv; if (!cond) return; errsv = ERRSV; if (SvROK(errsv) || SvTRUE(errsv)) croak_sv(errsv); } +# define D_PPP_CROAK_IF_ERROR(cond) D_PPP_CROAK_IF_ERROR(cond) #endif #ifndef G_METHOD diff --git a/parts/inc/misc b/parts/inc/misc index 6d3edbc5..a74e8cf8 100644 --- a/parts/inc/misc +++ b/parts/inc/misc @@ -19,6 +19,7 @@ MUTABLE_PTR NVTYPE PERLIO_FUNCS_CAST PERLIO_FUNCS_DECL +PERL_STATIC_INLINE PERL_UNUSED_ARG PERL_UNUSED_CONTEXT PERL_UNUSED_DECL @@ -38,6 +39,12 @@ ASSUME =implementation +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +__UNDEFINED__ PERL_STATIC_INLINE static inline +#else +__UNDEFINED__ PERL_STATIC_INLINE static +#endif + __UNDEFINED__ cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0) __UNDEFINED__ OpHAS_SIBLING(o) (cBOOL((o)->op_sibling)) __UNDEFINED__ OpSIBLING(o) (0 + (o)->op_sibling)