SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.47k stars 3.18k forks source link

AK+LibTest: Choose definition of CO_TRY and CO_TRY_OR_FAIL more robustly #24628

Closed DanShaders closed 3 months ago

DanShaders commented 3 months ago

There are three compiler bugs that influence this decision:

Instead of growing an ifdef soup in AK/Coroutine.h and LibTest/AsyncTestCase.h, define three macros in AK/Platform.h that correspond to these bugs and use them accordingly in the said files.