9#include "crt_utils_intf.hpp"
11#include "../telemetry/telemetry.hpp"
12#include "../console/console.hpp"
13#include "../utility/utility.hpp"
14#include "../concurrency/concurrency.hpp"
15#include "../char_maps/module.hpp"
16#include "../time/module.hpp"
17#include "../macros.hpp"
19hi_export_module(hikogui.crt.crt_utils : impl);
24hi_warning_ignore_msvc(26400);
26namespace hi {
inline namespace v1 {
37 auto r =
new char[size + 1];
50hi_export
inline void console_start()
noexcept
94 hi_assert_not_null(
wargv);
100 hi_assert_not_null(
argv);
124 hi_log_info(
"The AUX value from the time-stamp-count is equal to the cpu-id.");
126 hi_log_info(
"The measured frequency of the TSC is {} Hz.",
tsc_frequency);
134 hi_assert_not_null(
argv);
138 for (
auto i = 0; i !=
argc; ++i) {
Rules for working with win32 headers.
Utilities for throwing exceptions and terminating the application.
void shutdown_system() noexcept
Shutdown the system.
Definition subsystem.hpp:230
void start_system() noexcept
Start the system.
Definition subsystem.hpp:217
DOXYGEN BUG.
Definition algorithm.hpp:16
hi_export void console_start() noexcept
Initialize the console.
int crt_finish(int argc, char **argv, int exit_code)
Finish the hikogui system.
os_handle crt_application_instance
The application instance identified by the operating system.
Definition crt_utils_intf.hpp:24
std::pair< int, char ** > crt_start(int argc, char **argv, void *instance, int show_cmd)
Start the hikogui system.
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
hi_export char * make_cstr(char const *c_str, std::size_t size=-1) noexcept
Copy a std::string to new memory.
Definition crt_utils_win32_impl.hpp:31
std::terminate_handler old_terminate_handler
The old terminate handler.
Definition terminate.hpp:28
void terminate_handler() noexcept
The HikoGUI terminate handler.
Definition terminate.hpp:36
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
T set_terminate(T... args)