Author: [EMAIL PROTECTED]
Date: Mon Oct 27 02:48:47 2008
New Revision: 600

Modified:
    branches/bleeding_edge/src/jsregexp.cc

Log:
Fix issue 128.
Review URL: http://codereview.chromium.org/8617

Modified: branches/bleeding_edge/src/jsregexp.cc
==============================================================================
--- branches/bleeding_edge/src/jsregexp.cc      (original)
+++ branches/bleeding_edge/src/jsregexp.cc      Mon Oct 27 02:48:47 2008
@@ -30,11 +30,20 @@
  #include "execution.h"
  #include "factory.h"
  #include "jsregexp.h"
-#include "third_party/jscre/pcre.h"
  #include "platform.h"
  #include "runtime.h"
  #include "top.h"
  #include "compilation-cache.h"
+
+// Including pcre.h undefines DEBUG to avoid getting debug output from
+// the JSCRE implementation. Make sure to redefine it in debug mode
+// after having included the header file.
+#ifdef DEBUG
+#include "third_party/jscre/pcre.h"
+#define DEBUG
+#else
+#include "third_party/jscre/pcre.h"
+#endif

  namespace v8 { namespace internal {


--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to