How can I turn this to #define
#2

I don't see a point in doing so because declaring a function is just minimal overhead, but:

Code:
#define IsAuth(%1,%2) (aInfo[%1][aLogged]&&aInfo[%1][aLevel]>=%2)
You successfully saved memory worth 2 bytes or so.

%1 and %2 are placeholders, so anything you put in will then replace %1 and %2 within the code.
Reply


Messages In This Thread
How can I turn this to #define - by NeXoR - 15.06.2016, 22:02
Re: How can I turn this to #define - by NaS - 15.06.2016, 22:07
Re: How can I turn this to #define - by NeXoR - 15.06.2016, 22:11
Re: How can I turn this to #define - by Vince - 15.06.2016, 22:18
Re: How can I turn this to #define - by NaS - 15.06.2016, 22:34
Re: How can I turn this to #define - by PrO.GameR - 15.06.2016, 23:39
Re: How can I turn this to #define - by NeXoR - 16.06.2016, 02:08
Re: How can I turn this to #define - by NaS - 16.06.2016, 10:32
Re: How can I turn this to #define - by Stinged - 16.06.2016, 10:40
Re: How can I turn this to #define - by PrO.GameR - 16.06.2016, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)