Write macro to call CheckGLError(file, line)

Macro is in platform.h