-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] More C++ tweaks and changes (#9478)
Continued effort to restructure our native C++ runtime, introducing C++23 features as well as turning as many classes into static ones since we don't really have objects that need to be created and destroyed during lifetime of the application: * Replace `abort_if*` preprocessor macros with templated functions. This gives us better type safety. Instead using variadic arguments, we now provide overloads which take either a plain string without placeholders or a lambda function to format the message string on demand. * More `std::string_view` for literal strings * More functions decorated with `noexcept` (this is going to be important once exceptions are enabled in the future) * Remove some unused code.
- Loading branch information
Showing
18 changed files
with
425 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.