blob: 206bd5ddb73ef448041d76a55a33e3519043148f [file] [log] [blame]
// -*- C++ -*-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef _DEBUG
#error _DEBUG must be defined when using this header
#ifndef _WIN32
#error This header can only be used when targeting Windows
#include <crtdbg.h>
// On Windows in debug builds the default assertion handler opens a new dialog
// window which must be dismissed manually by the user. This function overrides
// that setting and instead changes the assertion handler to log to stderr
// instead.
inline int init_crt_report_mode() {
return 0;
static int init_crt_anchor = init_crt_report_mode();