From dd4f30226f3d4738e198dfcb944ce4cdc7e50a86 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 6 Feb 2022 09:19:56 -0500 Subject: Rework PointerHolder transition to make it smoother * Don't surprise people with deprecation warnings * Provide detailed instructions and support for the transition --- libtests/pointer_holder.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libtests') diff --git a/libtests/pointer_holder.cc b/libtests/pointer_holder.cc index 87c1fa07..3db2241a 100644 --- a/libtests/pointer_holder.cc +++ b/libtests/pointer_holder.cc @@ -1,4 +1,8 @@ -#define NO_POINTERHOLDER_DEPRECATION // we need to test the deprecated API +// We need to test the deprecated API +#ifdef POINTERHOLDER_TRANSITION +# undef POINTERHOLDER_TRANSITION +#endif +#define POINTERHOLDER_TRANSITION 0 #include #include -- cgit v1.2.3-54-g00ecf