×
Namespaces

Variants
Actions
Revision as of 09:59, 20 July 2012 by hamishwillee (Talk | contribs)

Preprocessing

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: wang_shui (24 Mar 2007)
Updated: hamishwillee (20 Jul 2012)
Last edited: hamishwillee (20 Jul 2012)

In programming languages, preprocessing is where source code is first parsed before being sent for processing by the rest of the build and compile toolchain. It is most commonly used to conditionally include parts of a program depending on the desired target.

For example, a preprocessor macro might be used to identify code related to the camera. The preprocessor would only include this code in builds for target devices that have a camera.

58 page views in the last 30 days.
×