feat: add some work

- add dialog parameter class for dialog helper. prepare to write real dialog popup function.
- refactor file filters class in dialog helper to make it no const syntax conflict.
- improve windows header import prefix and suffix header. remove the barrier limiting headers only can be imported once. fix define preprocessor usage bug.
- move crt warning and errors macro from project settings to internal headers.
- copy IronPad as ExceptionHandler but not adapted to this project.
This commit is contained in:
2024-05-23 09:37:41 +08:00
parent 359aff82ac
commit 84228b5f8c
10 changed files with 500 additions and 70 deletions

20
src/ExceptionHelper.hpp Normal file
View File

@ -0,0 +1,20 @@
#pragma once
#include "YYCCInternal.hpp"
#if YYCC_OS == YYCC_OS_WINDOWS
namespace YYCC::ExceptionHelper {
/**
* @brief Register unhandled exception handler
* @detail This function frequently called at the start of program.
*/
void Register();
/**
* @brief Unregiister unhandled exception handler
* @detail This function frequently called at the end of program.
*/
void Unregister();
}
#endif