There kind of is. There's __cplusplus, which I'll grant you is quite janky.
#IF __cplusplus==202302L