PLplot  5.15.0
wxPLplot_nanosec.h
Go to the documentation of this file.
1 #if !defined ( WXPLPLOT_NANOSEC_H__INCLUDED_ )
2 #define WXPLPLOT_NANOSEC_H__INCLUDED_
3 
4 /* #undef PLPLOT_WX_DEBUG_OUTPUT */
5 #ifdef PLPLOT_WX_DEBUG_OUTPUT
6 #include <wx/log.h> // for wxLogDebug
7 // Experimental option to attempt to include a nanosec timestamp with wxLogDebug output
8 // This is experimental because it may lead to build errors (since clock_gettime and
9 // some of its clock_id options will not be available on all systems).
10 /* #undef PLPLOT_WX_NANOSEC */
11 #ifdef PLPLOT_WX_NANOSEC
12 #include "plplot.h"
13 PLDLLIMPEXP_WX void
14 pl_wx_nanosec(const char *string);
15 
16 #define PLPLOT_wxLogDebug(string) pl_wx_nanosec(string)
17 
18 #endif //#ifdef PLPLOT_WX_NANOSEC
19 
20 #if !defined(PLPLOT_wxLogDebug)
21 #define PLPLOT_wxLogDebug(string) wxLogDebug(string)
22 #endif
23 #else //ifdef PLPLOT_WX_DEBUG_OUTPUT
24 #define PLPLOT_wxLogDebug(string)
25 #endif //ifdef PLPLOT_WX_DEBUG_OUTPUT
26 
27 #endif //#if !defined ( WXPLPLOT_NANOSEC_H__INCLUDED_ )
#define PLDLLIMPEXP_WX
Definition: pldll.h:109