diff options
author | Sven Gothel <[email protected]> | 2020-10-08 02:30:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-08 02:30:15 +0200 |
commit | d9f5aa6d79684eb16e97120edb69e634bd393944 (patch) | |
tree | 16496ff012cb67e7932d9aec6cd410393501136a /java/jni/JNIMem.cxx | |
parent | ca312ae5cb027cce126aebba2e7410df7f727432 (diff) |
dbt_debug: Have DBG_PRINT and WORDY_PRINT as macros, suppressing argument evaluation if condition is false
Following commit 581260d3f4144df3716eac736c9e8792be264edb
Also reverting COND_PRINT to drop __func__, __FILE__ and __LINE__
as not intended for this verbose ourput instrument (like DBG_PRINT etc).
Diffstat (limited to 'java/jni/JNIMem.cxx')
-rw-r--r-- | java/jni/JNIMem.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/jni/JNIMem.cxx b/java/jni/JNIMem.cxx index 19a63bd..2edbf98 100644 --- a/java/jni/JNIMem.cxx +++ b/java/jni/JNIMem.cxx @@ -29,14 +29,9 @@ #include <cstdio> #include "JNIMem.hpp" + #include "dbt_debug.hpp" -// #define VERBOSE_ON 1 -#ifdef VERBOSE_ON - #define DBG_PRINT(...) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); } -#else - #define DBG_PRINT(...) -#endif JavaVM* vm; thread_local JNIEnvContainer jni_env; |