overte/libraries/shared/src/CrashHelpers.h
2020-06-19 18:26:26 -07:00

32 lines
634 B
C++

//
// CrashHelpers.h
// libraries/shared/src
//
// Created by Ryan Huffman on 11 April 2016.
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#ifndef hifi_CrashHelpers_h
#define hifi_CrashHelpers_h
#include "SharedLogging.h"
namespace crash {
void doAssert(bool value); // works for Release
void pureVirtualCall();
void doubleFree();
void nullDeref();
void doAbort();
void outOfBoundsVectorCrash();
void newFault();
void throwException();
}
#endif // hifi_CrashHelpers_h