aboutsummaryrefslogtreecommitdiff
path: root/tests/un/win_wstr.c
blob: 55cec57b5998c8925e9b5f36fd28e9268a07b2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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