HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

[cpp] Prevent AtomicObject use cpp #11674

Closed Aidan63 closed 1 month ago

Aidan63 commented 1 month ago

I tried to use AtomicObject on the cpp target and ran into some very weird runtime null function errors. After much head scratching I discovered that AtomicObject is not actually implemented for hxcpp and the reason the #error wasn't stopping the compilation is that it was guarded with hxcpp instead of cpp.