From WikiTemp, the GBAtemp wiki
(cory's answer to the question)
(cory's answer to the question)
Line 6: Line 6:
  
 
<pre>
 
<pre>
<nowiki>long double double getGBATempLove(bool awake)
+
long double double getGBATempLove(bool awake)
 
if (awake)
 
if (awake)
 
{
 
{
 
   if (!RUDEnewbalert) // only happens rarely, approx once every 1mil iterations
 
   if (!RUDEnewbalert) // only happens rarely, approx once every 1mil iterations
       love = APPROACHES_INFINITE;  // careful, this one will definitely overflow the bounds of the largest data type on any current processor
+
       love = APPROACHES_INFINITE;  // careful, this one will definitely overflow the bounds of the largest data type
 
   else if (monkeyalert)
 
   else if (monkeyalert)
 
       return 0; // in case input is jibberish
 
       return 0; // in case input is jibberish
Line 22: Line 22:
 
                                       // more of a question though as no-one has ever gotten valid input when !awake
 
                                       // more of a question though as no-one has ever gotten valid input when !awake
 
}
 
}
</nowiki>
 
 
</pre>
 
</pre>
 +
 +
 +
=== readme.txt ===
 +
In short, this is a function which does/means:<br>
 +
I still come back and read/write posts most days, and cringe at some of the over-repetitve newb questions; aka: first time posters demanding answers simply because they exist and happen to be that specific monkey who gets sentences out instead of jibberish, though there are a few of those around too. Must love it quite a lot if you ask me.... on most days.

Revision as of 14:50, 26 February 2007

cory1492's entry for the How much do you love GBAtemp? competition.


cory's answer to the question

How much do you love GBAtemp?

long double double getGBATempLove(bool awake)
if (awake)
{
   if (!RUDEnewbalert) // only happens rarely, approx once every 1mil iterations
       love = APPROACHES_INFINITE;  // careful, this one will definitely overflow the bounds of the largest data type
   else if (monkeyalert)
       return 0; // in case input is jibberish
   else{
       love = (-1000000) * (asm_poke (fork_up_bum)) + (FINGERNAIL_SCRATCHING_BLACKBOARD) + (HANGOVER_PUKING);
   }
}
else  // if not awake
{
   love = IN_MY_DREAMS; // privacy is the key to keeping this data member where it belongs
                                      // more of a question though as no-one has ever gotten valid input when !awake
}


readme.txt

In short, this is a function which does/means:
I still come back and read/write posts most days, and cringe at some of the over-repetitve newb questions; aka: first time posters demanding answers simply because they exist and happen to be that specific monkey who gets sentences out instead of jibberish, though there are a few of those around too. Must love it quite a lot if you ask me.... on most days.