Somehow, I found this amusing. ;)
Printable View
Somehow, I found this amusing. ;)
"overblown speak-and-spell". :rofl: :D :D
Good stuff. :)
Heh :) . My computer's waaaay too aggressive, it tries to kill me all the time. It's crazy.
made me chuckle...good stuff, 8/10
Thanks Prelude :)
Prelude.Reputation++;
Quote:
Prelude.Reputation++;
Makes me sad :(Quote:
You must spread some Reputation around before giving it to Prelude again.
Hehe.
Wait...
What is an assertion error, anyways?
assertion errors are, under normal circumstances, errors purposely thrown by the programmer to catch bugs in the code.
For example, if a programmer codes a function that he KNOWS should always return true, but he has a feeling it might be returning false, he could do:
assert myBooleanFunctionThatShouldReturnTrue( );
if it returns false, the assert statement will generate an assertion error and the program will stop execution.
Normally you have to turn assertions on using a command line statement or the compiler will roll right over them like they werent even there.
>What is an assertion error, anyways?
An error found in debugging that says the code is broken. For example:
If foo is passed a null pointer then the calling code is wrong. Assertions should never be seen by end users. ;)Code:#include <assert.h>
...
int
foo(
char *p
)
{
assert(p != NULL);
...
}
That's odd, the amount of times I've seen them in release programs I thought they were an integral part of MS Visual C++ Runtime (MSVCRT.DLL). That and null pointer assignments.Quote:
Originally Posted by Prelude
Usually I just test specific cases and if there's a problem I just open up a message box and swear at myself. Oh well... :rolleyes:
>That's odd, the amount of times I've seen them in release programs I thought they were an integral part of MS Visual C++ Runtime (MSVCRT.DLL).
This would be funny without any additional comment, but I feel the need to bring it to everyone's attention nonetheless. :)
As a former UO addict, roleplayer and geek, that site made my day. Great stuff :D :D :D
Oh. I see.
So there on purpose, eh? Nifty.