Added condition check macros to make the code clear and easier to debug. Updated code to use macros.
Added condition check macros to make the code clear and easier to debug.
Updated code to use macros.

aduros/SDL,aduros/SDL,aduros/SDL,cebash/SDL_PSL1GHT,aduros/SDL,cebash/SDL_PSL1GHT,cebash/SDL_PSL1GHT,aduros/SDL,cebash/SDL_PSL1GHT,cebash/SDL_PSL1GHT