asserts and release

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 3 12:40:12 PDT 2014


Etienne:

> Are asserts supposed to be evaluated in DMD release? I was 
> getting a "privileged instructions error 0xC0000096" which was 
> caused by an assert, when doing some gc programming in druntime

assert(0) are not removed in release builds. They are a HALT.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list