15.06.2016, 23:39
Quote:
This is stupid and unnecessary. You'll only increase the size of the compiled amx and therefore you'll also consume more memory, not less. A define or macro merely does some basic text replacing, which means the code is effectively copied to all places that it used, rather than being referenced from a single location.
Furthermore, there's no such thing as "a stock". It's either "a function" or "a stock function" but never just "a stock". A stock function should - as its name implies - contain stock code that can be used in any and all scripts without changes. This function relies on global variables and should therefore not be declared stock. |
welp if it isn't I kinda learned a new thing today!
Although FYI I'm more concerned about CPU than Ram tho, I would sacrifice a couple bytes, hell even megabytes to speed any day.