forked from c42f/tinyformat
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error checking for wchar_t printf() incompatibility
Attempting to format wchar_t* with "%ls" would result in conversion to void*, and subsequent printing as a pointer - this could result in unexpected results when converting from a previous usage of traditional printf(). Changes in this patch make sure that such usage results in a compile time error to minimize nasty surprises! Also make the format string parser slightly more pedantic about which format strings it will accept, by rejecting C99 hexadecimal %a and %A with TINYFORMAT_ERROR.
- Loading branch information
Showing
4 changed files
with
53 additions
and
12 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
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