summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/strformat.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pacify clang, and more noexcept. Vas Crabb2023-03-261-10/+0
|
* Various optimisations to code generaton. Vas Crabb2023-03-261-630/+117
| | | | | | | | | | | | | | | util/bitmap.cpp, util/palette.cpp: Marked lots of things constexpr. Bitmaps don't throw exceptions on allocation failure, they just become invalid. Almost nothing in MAME actually checks for this. emu/profiler.cpp: Abort if the profile stack overflows rather than throwing an exception. This is a developer feature and if it overflows, the code is broken. Calling a noreturn noexcept function generates less code than throwing an exception, which adds up. util/strformat.cpp: Traded away some unnecessary flexibility for more compact code. The stream objects must derive from std::basic_ostream now - they can't just be any old objects with the expected operators.
* util/strformat.h: Detect C++ standard > C++17 before doing weird stuff. Vas Crabb2021-09-181-1/+0
|
* Fix some oversights and emergent behaviour with view selection. Vas Crabb2020-12-201-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | Exposed the "native snapview" option on the video manager. Trying to use presence of a single view is a poor proxy that breaks with multi-screen systems. Allow rotation to be changed for native snapshot views, and disable the zoom to screen area control when it has no effect on the selected view. Treat an empty string identically to "auto" for view selectction. Previously this was being used for prefix matching so it would force the first view. (This caused the bad snapshot view selection. It had been relying on "internal" not being a common view name prefix so it fell through to automatic selection, but when changed to an empty string it forced the first view.) Documented "auto" as well as "native" for the -snapview option and changed the default to auto rather than an empty string for consistency with the -viewN options. Added [w]string_view handlers to the stuff that's instantiated in strformat.cpp since we'll be increasingly using them. Cleaned up and updated some documentation.
* centralise instantiation of more of the util::strformat engine Vas Crabb2020-04-081-0/+533
|
* gah how did I miss that (nw) Vas Crabb2016-08-271-1/+1
|
* While I'm causing full recompiles all the time, reduce necessary number of ↵ Vas Crabb2016-08-271-0/+93
instantiations of parts of string formatting engine