From fa7f1c6c1fea3789aa4e574533e6bf5aac98c614 Mon Sep 17 00:00:00 2001 From: He Yang <1160386205@qq.com> Date: Fri, 23 Feb 2024 22:50:11 +0800 Subject: [PATCH] Add warning when compiling UWP apps (#32) (which is not supported for now...) --- ruapu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruapu.h b/ruapu.h index 24c11dd..e9b213b 100644 --- a/ruapu.h +++ b/ruapu.h @@ -25,9 +25,14 @@ int ruapu_supports(const char* isa); #include #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; }