deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

"Constant expression expected" errors with Haxe dev #100

Closed Gama11 closed 8 years ago

Gama11 commented 8 years ago
C:/HaxeToolkit/haxe/lib/nape/2,0,17/nape/dynamics/Arbiter.hx:329: characters 17-45 : Constant expression expected
C:/HaxeToolkit/haxe/lib/nape/2,0,17/nape/dynamics/Arbiter.hx:325: characters 8-39 : Missing return: nape.callbacks.PreFlag
C:/HaxeToolkit/haxe/lib/nape/2,0,17/nape/callbacks/Listener.hx:289: characters 21-59 : Constant expression expected

The id_ vars in zpp_nape.util.Flags should be inline, otherwise they're not usable in a switch-case with Haxe dev.

See https://github.com/HaxeFoundation/haxe/commit/04899ffdc5a2ff727150c8e86287f274d13bf938