改进
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
"C:\Program Files\JetBrains\CLion 2026.1\bin\cmake\win\x64\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug --preset vs2022_debug
|
||||||
|
-S D:\ae\proj\Renderive -B D:\ae\proj\Renderive\cmake-build-vs2022_debug
|
||||||
|
|
||||||
|
默认每次运行程序都通过CDB运行 D:\ae\ewdk\EWDK_22621_230929-1800\Program Files\Windows Kits\10\Debuggers\x64\cdb.exe
|
||||||
|
|
||||||
|
D:\ae\tools 可能会有有用的工具
|
||||||
|
|
||||||
|
运行前使用环境脚本 env.ps1
|
||||||
|
|
||||||
|
注意错误处理机制
|
||||||
|
|
||||||
|
可预料、可恢复的错误:返回专门的 enum class Xxx_Error。 不可预料的错误:使用异常传播。 不按“内部/外部”区分,全系统统一按“错误是否可预料”判断。
|
||||||
|
异步接口保持异步语义,可预料错误通过异步结果返回,异常仍走异常通道。 明确不会抛异常的函数才加 noexcept。
|
||||||
|
不为了错误处理增加多余检查、兼容层,或改变原函数语义。
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
"C:\Program Files\JetBrains\CLion 2026.1\bin\cmake\win\x64\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug --preset vs2022_debug
|
|
||||||
-S D:\ae\proj\Renderive -B D:\ae\proj\Renderive\cmake-build-vs2022_debug
|
|
||||||
|
|
||||||
默认每次运行程序都通过CDB运行 D:\ae\ewdk\EWDK_22621_230929-1800\Program Files\Windows Kits\10\Debuggers\x64\cdb.exe
|
|
||||||
|
|
||||||
D:\ae\tools 可能会有有用的工具
|
|
||||||
|
|
||||||
运行前使用环境脚本 env.ps1
|
|
||||||
Reference in New Issue
Block a user