4 ms·
I work with Unreal Engine which has a whole documentation page [0] on assertions. the default `check` assertion is incredibly useful, and does the "right thing"
by maccard 4y ago
I work with Unreal Engine which has a whole documentation page [0] on assertions. the default `check` assertion is incredibly useful, and does the "right thing" at so many levels - it pauses the debugger in the callstack on all platforms if attached, _and allows you to resume_ if desired. If not debugging, it will trigger the Unreal runtime's Error handling letting you actually handle the check safely in some error monitoring tools. It's probably my low key favourite feature of Unreal.
[0] https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/ProgrammingWithCPP/Assertions/ https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScrip...