about define MAX_
#1

What is the difference if I define MAX_ with parenthesis or witout for example #define MAX_TURFS (65) and why not #define MAX_TURFS 65 ??
Reply
#2

It is only really important if you intend to calculate with the number as it rules out any unintended alterations. But even if you don't intend to calculate, it's good practice to put it between parenthesis, anyway. Couldn't hurt.

Example on the wiki: https://sampwiki.blast.hk/wiki/Keywords:...ives#.23define
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)