On Thursday, 20 July 2017 at 15:10:24 UTC, Aldo wrote:
extern(C) nothrow {void onMouseClick(GLFWwindow* window, int button, int action, int d){ try { // my code } catch {} } }
Tangent but an easy way of nothrowing: extern(C) nothrow {void onMouseClick(GLFWwindow* window, int button, int action, int d)
{ scope(failure) return; // my throwing code } } or scope(failure) return -1; if working with error codes.