aboutsummaryrefslogtreecommitdiff
path: root/tests/un/win_wstr.c
blob: 51fc820084221272b058256eb9b61f331fa36085 (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
27
28
#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;

    un_alloc_temp_init(UN_KB(4));

    Allocator talloc = un_alloc_temp_get();

    caption = un_wstring_from_cstring((u8 *)"Внимание", talloc);
    text    = un_wstring_from_cstring((u8 *)"Тестовое сообщение", talloc);


    assert(caption != NULL);
    assert(text != NULL);

    // MessageBoxW(NULL, text, caption, MB_OK);
}

#endif