We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd28ff1 commit d27879aCopy full SHA for d27879a
1 file changed
src/liboslcomp/ast.cpp
@@ -30,6 +30,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
#include <string>
31
#include <sstream>
32
#include <functional>
33
+#ifndef NDEBUG
34
+#include <atomic>
35
+#endif
36
37
#include "osl_pvt.h"
38
#include "oslcomp_pvt.h"
@@ -65,8 +68,13 @@ class ScopeExit {
65
68
ScopeExit print_node_counts ([](){
66
69
for (int i = 0; i < ASTNode::_last_node; ++i)
67
70
if (node_counts[i] > 0)
71
+#if OIIO_VERSION >= (10000 * 1 + 100 * 8)
72
Strutil::printf ("ASTNode type %2d: %5d (peak %5d)\n",
73
i, node_counts[i], node_counts_peak[i]);
74
+#else
75
+ printf("ASTNode type %2d: %5d (peak %5d)\n",
76
+ i, node_counts[i], node_counts_peak[i]);
77
78
});
79
}
80
#endif
0 commit comments