Some of the best practices given below.

1. Prefer inline function over macros, bcz macro willl bring unwanted errors.
eg: See the example of a macro to find maximum of two numbers
 
 #define MAX(a,b) (a > b) ? a

Filed under : iPhone Games
Share | Permalink | Comments [0]
© 2008 iPhone Development by Sourcebits. All right reserved.