Add warning when compiling UWP apps (#32)

(which is not supported for now...)
This commit is contained in:
He Yang
2024-02-23 22:50:11 +08:00
committed by GitHub
parent 0be00a9b4c
commit fa7f1c6c1f
+6 -1
View File
@@ -25,9 +25,14 @@ int ruapu_supports(const char* isa);
#include <windows.h>
#if WINAPI_FAMILY == WINAPI_FAMILY_APP
// uwp does not support veh :(
#if defined (_MSC_VER)
#pragma message("warning: ruapu does not support UWP yet.")
#else
#warning ruapu does not support UWP yet.
#endif
static int ruapu_detect_isa(const void* some_inst)
{
// uwp does not support seh :(
(void)some_inst;
return 0;
}