including HandleScope::ZapRange in release mode.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@189
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef _V8_DEBUG
-#define _V8_DEBUG
+#ifndef V8_DEBUG_H_
+#define V8_DEBUG_H_
#include "v8.h"
#undef EXPORT
-#endif // _V8_DEBUG
+#endif // V8_DEBUG_H_
* For other documentation see http://code.google.com/apis/v8/
*/
-#ifndef _V8
-#define _V8
+#ifndef V8_H_
+#define V8_H_
#include <stdio.h>
/** Deallocates any extensions used by the current scope.*/
static void DeleteExtensions();
-#ifdef DEBUG
// Zaps the handles in the half-open interval [start, end).
static void ZapRange(void** start, void** end);
-#endif
friend class ImplementationUtilities;
};
#undef TYPE_CHECK
-#endif // _V8
+#endif // V8_H_
}
-#ifdef DEBUG
void HandleScope::ZapRange(void** start, void** end) {
if (start == NULL) return;
for (void** p = start; p < end; p++) {
*p = reinterpret_cast<void*>(v8::internal::kHandleZapValue);
}
}
-#endif
void** v8::HandleScope::RawClose(void** value) {