Write macro to call CheckGLError(file, line)

Macro is in platform.h

Haven't checked to see if it builds (but I assume it does, looking at the change comparisons.)