@nogc and opengl errors check
Xavier Bigand via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 20 14:47:17 PST 2017
Hi,
I am writing some code with opengl commands that I want to check in
debug, so I am using the function checkgl (from glamour lib).
The issue is that checkgl throw exception and can't be @nogc, I had try
to use std.experimental.logger in place of exceptions, but it doesn't
work either.
I mostly want to be able to check the opengl errors only in debug in a
way that can make the debugger breaks.
On an other part as I will certainly have to log some events (even in
release) I would appreciate that the logger be able to be used in @nogc
functions, maybe with allocators?
More information about the Digitalmars-d-learn
mailing list