From 39cf7760652873f4bf49a7e86c4762c40edf05c2 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Tue, 1 Nov 2022 14:22:45 +0100 Subject: scope.* - more flexible ways to save warning bits --- scope.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scope.h') diff --git a/scope.h b/scope.h index e3a672a4e7..3b5b37cf75 100644 --- a/scope.h +++ b/scope.h @@ -220,7 +220,8 @@ scope has the given name. C must be a literal string. could have done savefreesharedpvREF, but this way actually seems cleaner, as it simplifies the code that does the saves, and reduces the load on the save stack. */ -#define SAVECOMPILEWARNINGS() save_pushptr(PL_compiling.cop_warnings, SAVEt_COMPILE_WARNINGS) +#define SAVECOPWARNINGS(cop) save_pushptrptr((cop),(cop)->cop_warnings, SAVEt_COMPILE_WARNINGS) +#define SAVECOMPILEWARNINGS() SAVECOPWARNINGS(&PL_compiling) #define SAVEPARSER(p) save_pushptr((p), SAVEt_PARSER) -- cgit v1.2.1