Add IsDebuggerPresent
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
- Macros
|
- Macros
|
||||||
- ctrl-e started doing no-ops again ... ??
|
- ctrl-e started doing no-ops again ... ??
|
||||||
- Window position: vscode opens in fullscreen and then remembers what position it was close in (could be a config option)
|
- Window position: vscode opens in fullscreen and then remembers what position it was close in (could be a config option)
|
||||||
|
- On Linux: Try to implement is_debugger_present()
|
||||||
|
|
||||||
- OnUpdate view hooks!
|
- OnUpdate view hooks!
|
||||||
- OnSave buffer hooks which will execute the config on save
|
- OnSave buffer hooks which will execute the config on save
|
||||||
|
|||||||
@@ -77,7 +77,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OS_WINDOWS
|
#if OS_WINDOWS
|
||||||
#define BREAK() __debugbreak()
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
|
#include <windows.h>
|
||||||
|
#define BREAK() if (IsDebuggerPresent()) {__debugbreak();}
|
||||||
#elif OS_LINUX
|
#elif OS_LINUX
|
||||||
#define BREAK() raise(SIGTRAP)
|
#define BREAK() raise(SIGTRAP)
|
||||||
#elif OS_WASM
|
#elif OS_WASM
|
||||||
|
|||||||
@@ -282,11 +282,8 @@ void TestParser() {
|
|||||||
ok = MatchEvent(trigger, &event);
|
ok = MatchEvent(trigger, &event);
|
||||||
Assert(!ok);
|
Assert(!ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} RegisterFunction(&TestFunctions, TestParser);
|
} RegisterFunction(&TestFunctions, TestParser);
|
||||||
|
|
||||||
|
|
||||||
void CMD_OpenConfig() {
|
void CMD_OpenConfig() {
|
||||||
Buffer *buffer = GetBuffer(GlobalConfigBufferID);
|
Buffer *buffer = GetBuffer(GlobalConfigBufferID);
|
||||||
Open(buffer->name);
|
Open(buffer->name);
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ bool WaitForEventsState = true;
|
|||||||
bool RunGCThisFrame;
|
bool RunGCThisFrame;
|
||||||
bool SearchCaseSensitive = false;
|
bool SearchCaseSensitive = false;
|
||||||
bool SearchWordBoundary = false;
|
bool SearchWordBoundary = false;
|
||||||
|
#if OS_WINDOWS
|
||||||
bool BreakOnError = true;
|
bool BreakOnError = true;
|
||||||
|
#else
|
||||||
|
bool BreakOnError = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
WindowID WindowIDs;
|
WindowID WindowIDs;
|
||||||
ViewID ViewIDs;
|
ViewID ViewIDs;
|
||||||
|
|||||||
Reference in New Issue
Block a user