#define vs normal function
#1

Hi, are there any downsides of using #define instead of normal functions?
I'm specifically talking about using it in this case:
Code:
GetPlayerAdminLevel(playerid) {
	return Player[playerid][AdminLevel];
}
#define GetPlayerAdminLevelEx(%0) Player[%0][AdminLevel]
I've already tested that using #define is slightly faster than functions, but i'm unsure if it will make me run into some errors later.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)