diff options
author | bonmas14 <bonmas14@gmail.com> | 2025-08-23 01:28:41 +0300 |
---|---|---|
committer | bonmas14 <bonmas14@gmail.com> | 2025-08-23 01:28:41 +0300 |
commit | 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (patch) | |
tree | 205413ed09ac001e37267889d429a363c37008f2 /tests/un/win_wstr.c | |
parent | c96c355b360f18f982459e1a866dcbf5864efdb8 (diff) | |
download | ungrateful-main.tar.gz ungrateful-main.zip |
Diffstat (limited to 'tests/un/win_wstr.c')
-rw-r--r-- | tests/un/win_wstr.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/un/win_wstr.c b/tests/un/win_wstr.c new file mode 100644 index 0000000..55cec57 --- /dev/null +++ b/tests/un/win_wstr.c @@ -0,0 +1,26 @@ +#include <ungrateful.h> +#if !defined(OS_WINDOWS) +int main(void) { + return 0; +} +#else + +#include <windows.h> +#pragma comment(lib, "User32.lib") + +int main(void) { + wchar *caption, *text; + Allocator talloc = un_allocator_get_temporary(); + + + caption = un_wstring_from_cstring(UN_CSTR "Внимание", talloc); + text = un_wstring_from_cstring(UN_CSTR "Тестовое сообщение", talloc); + + + assert(caption != NULL); + assert(text != NULL); + + // MessageBoxW(NULL, text, caption, MB_OK); +} + +#endif |