Overte C++ Documentation
CrashHelpers.h
1 //
2 // CrashHelpers.h
3 // libraries/shared/src
4 //
5 // Created by Ryan Huffman on 11 April 2016.
6 // Copyright 2016 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #pragma once
13 
14 #ifndef hifi_CrashHelpers_h
15 #define hifi_CrashHelpers_h
16 
17 #include "SharedLogging.h"
18 
19 namespace crash {
20 
21 void doAssert(bool value); // works for Release
22 void pureVirtualCall();
23 void doubleFree();
24 void nullDeref();
25 void doAbort();
26 void outOfBoundsVectorCrash();
27 void newFault();
28 void throwException();
29 
30 }
31 
32 #endif // hifi_CrashHelpers_h