Gleb Mazovetskiy
b7404af9c7
Fix build with NONET and no exceptions
...
Fixes the build with `-fno-rtti` and `-fno-exceptions`.
Building with these flags reduces the binary size by more than 200 KiB.
4 years ago
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
4 years ago
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
4 years ago
obligaron
82cea78def
Apply clang-format
5 years ago
Anders Jenbo
d523fc1e81
Cleanups
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Anders Jenbo
9e2206a673
Format code
5 years ago
obligaron
f70582ef87
log.hpp: Fix app_fatal local definition
5 years ago
Anders Jenbo
4a7ba94702
🎨 Run clang-format
5 years ago
Jonathan Mercier-Ganady
4274cc6f1f
Log format errors as critical and call app_fatal to terminate
5 years ago
Gleb Mazovetskiy
807d8528b1
🐞 Fix fmt includes "" -> <>
5 years ago
Gleb Mazovetskiy
c49de0b5f1
🎨 Source/utils/log.hpp: Fix newlines
5 years ago
Jmgr
af0ea6fdfc
Set Application as the default log category
...
Remove example of logging a container
5 years ago
Jmgr
f3a401b5f6
Add the fmt library as a dependency and add some examples
...
Attempt at fixing missing functions on some platforms
5 years ago