Quote:
Originally Posted by Luka P.
This is not actually a snippet, but it can make your code more read-able. I already posted something using this definitions in Useful codes board.
pawn Код:
#define String:: str_ #define Integer:: int_ #define function #define private static stock
// Example private function String::ToInteger(const string[]) { return strval(string); }
|
I'm sorry but I fell down from my chair laughing at this what you said. That your example hurts my eyes.
If you really want to rename a function, why don't you just (yeah, you can add your ::'s if that's needed):
pawn Код:
#define StringToInteger strval
Just because ****** is able to simplify and shorten his code with epic macros doesn't mean everyone should start using macros more often with every single function, especially if you have no idea what it really does. It's not cool, it's not any faster - what's the point?