feat: add more output functions in console helper.

- add more output functions in console helper.
	* split output functions by format string and plain string as Format and Write.
	* add functions which output to stderr.
- improve document.
This commit is contained in:
2024-06-14 11:59:08 +08:00
parent 0ef1939e6e
commit c32806ea03
7 changed files with 199 additions and 81 deletions

View File

@ -8,12 +8,12 @@ namespace YYCC::ExceptionHelper {
* @brief Register unhandled exception handler
* @details
* This function will set an internal function as unhandled exception handler on Windows.
* \n
*
* When unhandled exception raised,
* That internal function will output error stacktrace in standard output
* and log file (located in temp folder), and also generate a dump file
* in temp folder (for convenient debugging of developer when reporting bugs) if it can.
* \n
*
* This function usually is called at the start of program.
* @remarks This function is Windows only.
*/
@ -22,10 +22,10 @@ namespace YYCC::ExceptionHelper {
* @brief Unregister unhandled exception handler
* @details
* The reverse operation of Register().
* \n
*
* This function and Register() should always be used as a pair.
* You must call this function if you have called Register() before.
* \n
*
* This function usually is called at the end of program.
* @remarks This function is Windows only.
*/