Changes

Jump to: navigation, search

Using Objective-C Preprocessor Directives

No change in size, 18:08, 1 February 2016
m
Text replacement - "<google>ADSDAQBOX_FLOW</google>" to "<htmlet>adsdaqbox_flow</htmlet>"
The #define statement may also be used in a more advanced fashion to create small fragments of code called ''macros''. These can be thought of as small functions that can accept arguments, perform operations and return results. The following definition declares a macro designed to multiply two numbers together:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
<tt>#define CalcInterest(x,y) ( x * y )</tt>

Navigation menu