Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualDemonRad

Posted 16 August 2013 - 05:01 AM

 

and mine:

#define IF if(
#define THEN )
#define DO {
#define ENDIF }
#define ELSE }else
 
IF keyboard_check(vk_left) THEN
DO
        x -= 5;
ELSE IF keyboard_check(vk_right) THEN
DO
        x += 5;
ENDIF

 

do not undervaluate the power of this. You get automatic error-correction for mistypings and wrong capital letters

#define IF if(
#define iF if(
#define Iff if(
#define If if(
//...
IFFF condidion ISTRue   //expands to "if(condition==true){"

sleep.png

 

I'm guessing if something like that is allowed:

#define while for

#1DemonRad

Posted 16 August 2013 - 05:00 AM

 

and mine:

#define IF if(
#define THEN )
#define DO {
#define ENDIF }
#define ELSE }else
 
IF keyboard_check(vk_left) THEN
DO
        x -= 5;
ELSE IF keyboard_check(vk_right) THEN
DO
        x += 5;
ENDIF

 

do not undervaluate the power of this. You get automatic error-correction for mistypings and wrong capital letters

 

#define IF if(
#define iF if(
#define Iff if(
#define If if(
//...

 

 

IFFF condidion ISTRue   //expands to "if(condition==true){"

 

sleep.png

 

I'm guessing if something like that is allowed:

#define while for

just to put that defines in a header at work and looking at boss trying to debug the whole codebase XD


PARTNERS