mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 05:26:16 +02:00
Add missing file
This commit is contained in:
parent
5d168666c3
commit
b551e80fa5
1 changed files with 28 additions and 0 deletions
28
libraries/shared/src/Breakpoint.h
Normal file
28
libraries/shared/src/Breakpoint.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// Breakpoint.h
|
||||
//
|
||||
//
|
||||
// Created by Dale Glass on 5/6/2022
|
||||
// Copyright 2022 Dale Glass
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
|
||||
// Software defined breakpoints, for aiding in debugging
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#include <csignal>
|
||||
#define BREAKPOINT raise(SIGINT);
|
||||
#elif defined(__clang__)
|
||||
#define BREAKPOINT __builtin_trap();
|
||||
#elif _MSC_VER && !__INTEL_COMPILER
|
||||
#include <intrin.h>
|
||||
#define BREAKPOINT __debugbreak();
|
||||
#else
|
||||
#include "CrashHelpers.h"
|
||||
#define BREAKPOINT crash::nullDeref();
|
||||
#endif
|
Loading…
Reference in a new issue