trace: allow for custom trace implementations
This patch is designed to allow for other implementations of the Trace method.
This will be done to change performance/overhead considerations on different clients when regarding
logging.
Change-Id: I33c549df522035eec15ee7ddbd71cd7f8eed088c
Signed-off-by: David Ludwig Wilson <david.wilson@intel.com>
diff --git a/agent/tcf/framework/trace.h b/agent/tcf/framework/trace.h
index fd93adc..a511f20 100644
--- a/agent/tcf/framework/trace.h
+++ b/agent/tcf/framework/trace.h
@@ -57,15 +57,20 @@
extern FILE * log_file;
+#ifndef trace
#define trace log_file == NULL ? (void)0 : (void)print_trace
+#endif /* not def trace */
#else /* not ENABLE_Trace */
-
+#ifndef trace
#if (defined(_MSC_VER) && _MSC_VER >= 1400) || defined(__GNUC__)
# define trace(...) ((void)0)
#else
# define trace 0 &&
#endif
+#endif /* not def trace */
+
+
#endif /* ENABLE_Trace */