HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
crt.hpp
Go to the documentation of this file.
1// Copyright Take Vos 2021-2022.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
21#pragma once
22
23hi_warning_push();
24hi_warning_ignore_clang("-Wunused-variable");
25hi_warning_ignore_clang("-Wreorder");
26hi_warning_ignore_clang("-Wunused-private-field");
27
28hi_warning_ignore_msvc(4127);
29hi_warning_ignore_msvc(6011);
30hi_warning_ignore_msvc(6386);
31hi_warning_ignore_msvc(6387);
32hi_warning_ignore_msvc(4701);
33hi_warning_ignore_msvc(4703);
34hi_warning_ignore_msvc(4189);
35
36#define VMA_IMPLEMENTATION
37#include <vma/vk_mem_alloc.h>
38
39hi_warning_pop();
40
47int hi_main(int argc, char *argv[]);
48
49#if HI_OPERATING_SYSTEM == HI_OS_WINDOWS
50#include "win32_headers.hpp"
51
62int WINAPI WinMain(
63 _In_ HINSTANCE hInstance,
64 [[maybe_unused]] _In_opt_ HINSTANCE hPrevInstance,
65 [[maybe_unused]] _In_ LPSTR lpCmdLine,
66 _In_ int nShowCmd)
67{
68 auto [argc, argv] = hi::crt_start(hInstance, nShowCmd);
69 hilet r = hi_main(argc, argv);
70 return hi::crt_finish(argc, argv, r);
71}
72
73#else
74#error "Need entry point for this architecture"
75#endif
int hi_main(int argc, char *argv[])
Main entry-point.
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd)
Windows entry-point.
Definition crt.hpp:62
Rules for working with win32 headers.