aboutsummaryrefslogtreecommitdiff
path: root/tests/un/win_wstr.c
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
committerbonmas14 <bonmas14@gmail.com>2025-08-23 01:28:41 +0300
commit8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (patch)
tree205413ed09ac001e37267889d429a363c37008f2 /tests/un/win_wstr.c
parentc96c355b360f18f982459e1a866dcbf5864efdb8 (diff)
downloadungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.tar.gz
ungrateful-8ebdc95621bc61fdf3c98cd7ae4ddca67398df23.zip
Ungrateful changes, added more stuffHEADmain
Diffstat (limited to 'tests/un/win_wstr.c')
-rw-r--r--tests/un/win_wstr.c26
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