Add IsDebuggerPresent
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
- Macros
|
||||
- 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)
|
||||
- On Linux: Try to implement is_debugger_present()
|
||||
|
||||
- OnUpdate view hooks!
|
||||
- OnSave buffer hooks which will execute the config on save
|
||||
|
||||
@@ -77,7 +77,14 @@
|
||||
#endif
|
||||
|
||||
#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
|
||||
#define BREAK() raise(SIGTRAP)
|
||||
#elif OS_WASM
|
||||
|
||||
@@ -282,11 +282,8 @@ void TestParser() {
|
||||
ok = MatchEvent(trigger, &event);
|
||||
Assert(!ok);
|
||||
}
|
||||
|
||||
|
||||
} RegisterFunction(&TestFunctions, TestParser);
|
||||
|
||||
|
||||
void CMD_OpenConfig() {
|
||||
Buffer *buffer = GetBuffer(GlobalConfigBufferID);
|
||||
Open(buffer->name);
|
||||
|
||||
@@ -8,7 +8,11 @@ bool WaitForEventsState = true;
|
||||
bool RunGCThisFrame;
|
||||
bool SearchCaseSensitive = false;
|
||||
bool SearchWordBoundary = false;
|
||||
#if OS_WINDOWS
|
||||
bool BreakOnError = true;
|
||||
#else
|
||||
bool BreakOnError = false;
|
||||
#endif
|
||||
|
||||
WindowID WindowIDs;
|
||||
ViewID ViewIDs;
|
||||
|
||||
Reference in New Issue
Block a user