Commit f43a71ac authored by Victor Zverovich's avatar Victor Zverovich Committed by Facebook Github Bot

Move HAZPTR_DEBUG macro definition to target

Summary:
Move the definition of `HAZPTR_DEBUG` from code to the target to fix modular
build. This is needed because `HAZPTR_DEBUG` is effectively a configuration
macro affecting the API.

Reviewed By: magedm

Differential Revision: D9256127

fbshipit-source-id: 44deb0e915373ea88206098544b03fa335b31a22
parent b436f54d
...@@ -17,13 +17,15 @@ ...@@ -17,13 +17,15 @@
#include <glog/logging.h> #include <glog/logging.h>
#ifndef HAZPTR_DEBUG #ifdef HAZPTR_DEBUG
#define HAZPTR_DEBUG false #define HAZPTR_DEBUG_ HAZPTR_DEBUG
#else
#define HAZPTR_DEBUG_ false
#endif #endif
#define HAZPTR_DEBUG_PRINT(...) \ #define HAZPTR_DEBUG_PRINT(...) \
do { \ do { \
if (HAZPTR_DEBUG) { \ if (HAZPTR_DEBUG_) { \
VLOG(2) << __func__ << " --- " << __VA_ARGS__; \ VLOG(2) << __func__ << " --- " << __VA_ARGS__; \
} \ } \
} while (false) } while (false)
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#define HAZPTR_DEBUG true
#define HAZPTR_STATS true #define HAZPTR_STATS true
#define HAZPTR_SCAN_THRESHOLD 10 #define HAZPTR_SCAN_THRESHOLD 10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment