Fix macro expansion error with return statement

If in debug mode, eglCheck will expand to multiple statements,
ruining the intended check.