From d05feabcd6e1adb2b1804841a3cc336005d32c3d Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Tue, 27 Aug 2013 08:39:15 -0400 Subject: [PATCH] Suppress SpewOpcode if not a debug build (bug 5859, r=dvander). --- sourcepawn/jit/x86/jit_x86.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sourcepawn/jit/x86/jit_x86.cpp b/sourcepawn/jit/x86/jit_x86.cpp index de801d84..36616e14 100644 --- a/sourcepawn/jit/x86/jit_x86.cpp +++ b/sourcepawn/jit/x86/jit_x86.cpp @@ -423,6 +423,8 @@ Compiler::emit(int *errp) plugin_->name, GetFunctionName(plugin_, pcode_start_)); +#endif +#if defined DEBUG SpewOpcode(plugin_, code_start_, cip_); #endif @@ -440,7 +442,7 @@ Compiler::emit(int *errp) if (*cip_ == OP_PROC || *cip_ == OP_ENDPROC) break; -#if !defined NDEBUG +#if defined DEBUG SpewOpcode(plugin_, code_start_, cip_); #endif