Added gl_exception and debugging macros.
Authored by: crowbar27 2015-03-18
Parent: [r689]
Child: [r691]