sculpto
base.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file sclpch.h
3 * \brief Sculpto library prehompiled header.
4 * Defines common definitions, includes commonly used modules.
5 *
6 * \author Sabitov Kirill
7 * \date 22 June 2022
8 *********************************************************************/
9
10#pragma once
11
16#pragma warning(disable : 4251)
17
26
28
29#define SCL_BIND_EVENT_FN(fn) [this](auto&&... args) -> decltype(auto) { return this->fn(std::forward<decltype(args)>(args)...); }
30
32namespace scl
33{
50
52#ifdef SCL_PLATFORM_WINDOWS
53 using window_handle = HWND;
54#else
55 using window_handle = int;
56#endif
57}
Assertion macros definition module.
Debug memory allocation controll hook definition module. Reports unfreed memory, if any.
Event dispatcher class implementation module.
Fixed ;ength string class implementation module. Useful for class templates.
Logging system definition module.
Definition: base.h:33
int window_handle
Definition: base.h:55
String id generating by CRC32 algoritm implemetation module. Can be used both in compiletime anr runt...
Helper throw if failed inline function implementation function. Commonly used in DirectX module.