Write macro to call CheckGLError(file, line)

Macro is in platform.h
Rename macro to use uppercase to fix compile error
seems okay