diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-08 16:04:53 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-08 16:04:53 +0100 |
| commit | 06c8c665f0a9e5ac3819004e8d64b1fa323deeb0 (patch) | |
| tree | fec7d278b1afe7292556415c0fd7244a0d89113b /tools/timeline_editor/index.html | |
| parent | 0f99e09bd4a4bd73c25d0bba9e1954c911fd8be8 (diff) | |
feat(util): Add CHECK_RETURN macros for recoverable errors
Created check_return.h with hybrid macro system:
- CHECK_RETURN_IF: Simple validation with immediate return
- CHECK_RETURN_BEGIN/END: Complex validation with cleanup
- WARN_IF: Non-fatal warnings
- ERROR_MSG: Error message helper
Applied to 5 call sites:
- asset_manager.cc: 3 procedural generation errors
- test_demo.cc: 2 command-line validation errors
Unlike FATAL_XXX (which abort), these return to caller for
graceful error handling. Messages stripped in STRIP_ALL,
control flow preserved.
Size impact: ~500 bytes saved in STRIP_ALL builds
Tests: 31/31 passing
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/timeline_editor/index.html')
0 files changed, 0 insertions, 0 deletions
