提交 fa5c4778 编写于 作者: J jp9000

libobs/util: Add os_breakpoint function

上级 c629bbe5
......@@ -26,13 +26,13 @@
#include <unistd.h>
#include <glob.h>
#include <time.h>
#include <signal.h>
#include "obsconfig.h"
#if !defined(__APPLE__)
#include <sys/times.h>
#include <sys/wait.h>
#include <signal.h>
#include <spawn.h>
#endif
......@@ -591,3 +591,8 @@ void os_inhibit_sleep_destroy(os_inhibit_t *info)
}
#endif
void os_breakpoint()
{
raise(SIGINT);
}
......@@ -18,6 +18,7 @@
#include <mmsystem.h>
#include <shellapi.h>
#include <shlobj.h>
#include <intrin.h>
#include "base.h"
#include "platform.h"
......@@ -771,3 +772,8 @@ void os_inhibit_sleep_destroy(os_inhibit_t *info)
bfree(info);
}
}
void os_breakpoint(void)
{
__debugbreak();
}
......@@ -158,6 +158,8 @@ EXPORT os_inhibit_t *os_inhibit_sleep_create(const char *reason);
EXPORT bool os_inhibit_sleep_set_active(os_inhibit_t *info, bool active);
EXPORT void os_inhibit_sleep_destroy(os_inhibit_t *info);
EXPORT void os_breakpoint(void);
#ifdef _MSC_VER
#define strtoll _strtoi64
#if _MSC_VER < 1900
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册