Skip to main content
gamedev.net
🔒 Locked

#define PREPROCESSOR tricks :)

Started by maxd gaming Jan 5, 2004 at 10:20 PM 19 replies 1k views
Original Post
maxd gaming
maxd gaming
#define EVER ; ;

for(EVER)
//Aren't I cool... I made a forever command 
//Probably doesn't compile LOL
//Edit: WHOA! COOLER! I MADE A EMOTICON IN A CODE SEGMENT! WHAT A BUG!
//     

It's Maxd Gaming, put in an underscore and I will beat you with a rubber ducky! { Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. } [edited by - Maxd Gaming on January 5, 2004 11:22:26 PM] [edited by - Maxd Gaming on January 5, 2004 11:37:54 PM]
maxd gaming
maxd gaming
Since this hasn''t been deleted I can assume our 23yrold is not online



It''s Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }
particleG
particleG

#define INFINITY 0

while (!INFINITY)
{
}



Isn''t the preprocessor cool?
jfclavette
jfclavette
No, the processor is not cool.


[edited by - xmcbainx on January 5, 2004 11:26:54 PM]
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style
Woodsman
Woodsman
You call that a macro?
If a plant cannot live according to its nature, it dies; so a man.
particleG
particleG

#define BEGIN {
#define END }
#define SUB void


SUB main ()
BEGIN

END



Look I made basic in C, this must be how maxd_gaming programs
particleG
particleG

how about this then,

while (!NULL)
{
}



assuming NULL is defined as 0
DukeAtreides076
DukeAtreides076
#define DUMASS max....ahhh forget it the mods are gonna come here anyway...
bigbadboo
bigbadboo
while( !threadClosed )
Spam();
--------------------------A good discussion is like a miniskirt; Short enough to pertain interest and long enough to cover the subject..
Tron3k
Tron3k
I don''t think that serves to make the code more readable at all.
“[The clergy] believe that any portion of power confided to me, will be exerted in opposition to their schemes. And they believe rightly: for I have sworn upon the altar of God, eternal hostility against every form of tyranny over the mind of man” - Thomas Jefferson
maxd gaming
maxd gaming
quote:
Original post by particleG
maxd_gaming



Ahem! RUBBER DUCKY! I NEED YOU!





It's Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }

[edited by - Maxd Gaming on January 5, 2004 11:35:35 PM]
particleG
particleG

while (!maxd_gaming.banned)
{
maxd_gaming.getDrunk();
maxd_gaming.learnSomeC();
maxd_gaming.postCrap();

if(moderator.generateRandomNumber() == 0)
moderator.closeThread(this);
else
moderator.goBanSomeRandomPeopleInstead();
}

maxd gaming
maxd gaming
quote:
Original post by particleG

while (!maxd_gaming.banned)
{
maxd_gaming.getDrunk();
maxd_gaming.learnSomeC();
maxd_gaming.postCrap();

if(moderator.generateRandomNumber() == 0)
moderator.closeThread(this);
else
moderator.goBanSomeRandomPeopleInstead();
}




LOL True!



It''s Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }
particleG
particleG

yes that is an underscore, your name used to have it before you figured out where the space key was
maxd gaming
maxd gaming
quote:
Original post by particleG

yes that is an underscore, your name used to have it before you figured out where the space key was


Actually never, I hate _''s I would just remove the space in signups that allow no spaces so it would be maxdgaming



It''s Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }
blueEbola
blueEbola
Ahh, nothin' like that fresh smell of crap post.

[edited by - blueEbola on January 5, 2004 11:37:45 PM]
maxd gaming
maxd gaming
quote:
Original post by DukeAtreides076
#define DUMASS max....ahhh forget it the mods are gonna come here anyway...


Forgot a B



It''s Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }
particleG
particleG

I tried to register www._.com but they wouldn''t let me
Woodsman
Woodsman
defmacro > #define
If a plant cannot live according to its nature, it dies; so a man.
particleG
particleG

#ifndef VALUE_10_DEFINED
#define VALUE_10_DEFINED
#define VALUE_10 10
#include "header1.h"
#undef VALUE_10

#define VALUE_10 11.234
#include "header2.h"
#include "header3.h"
#undef VALUE_10

#define VALUE_10 0
#include "header4.h"
#undef VALUE_10

#undef VALUE_10

#else

#define STUPID_THREAD_NOT_BANNED true

#endif

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.