crash in glfw when compiled with -d:danger
the use of assert in examples make it skip initialization code when compiled with -d:danger it should be changed to doAssert that never get skipped.

* **Please tell us about your environment:**
  - OS:  Windows
  - Bindings: [GLFW]
  - Backend: [ C and CPP ]
