… | |
… | |
45 | |
45 | |
46 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
46 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
47 | |
47 | |
48 | // some macros to simplify perl in-calls |
48 | // some macros to simplify perl in-calls |
49 | |
49 | |
50 | // FUNCTION is, afaik, a gnu extension |
|
|
51 | #define CHECK_ERROR \ |
50 | #define CHECK_ERROR \ |
52 | if (SvTRUE (ERRSV)) \ |
51 | if (SvTRUE (ERRSV)) \ |
53 | LOG (llevError, "runtime error in %s: %s\n", __func__, SvPVutf8_nolen (ERRSV)); |
52 | LOG (llevError, "runtime error in %s: %s\n", __func__, SvPVutf8_nolen (ERRSV)); |
54 | |
53 | |
55 | #define CALL_BEGIN(args) dSP; ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, args) |
54 | #define CALL_BEGIN(args) dSP; ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, args) |