D Program Structure

Version 8 by jon_haslam
on Nov 27, 2007 07:43.

compared with
Current by Michael_Ernest
on Apr 20, 2009 22:42.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View page history

[Top|#top]
h2. {anchor:CHP-PROG-ORDER} Order of Execution
Each clause is represented by its predicate, if any, and the clause's actions. When an enabled probe fires, its actions will execute if the predicate evaluates to true or if no predicate is given. Program order determines the order in which actions are executed. Two or more clauses that enable the same probe will also execute in program order.

[Top|#top]
h2. {anchor:CHP-PROG-5} Use of the C Preprocessor
The C programming language used for defining Solaris system interfaces includes a _preprocessor_ that performs a set of initial steps in C program compilation. The C preprocessor is commonly used to define macro substitutions where one token in a C program is replaced with another predefined set of tokens, or to include copies of system header files. You can use the C preprocessor in conjunction with your D programs by specifying the {{dtrace}} \-C option. This option causes {{dtrace}} to first execute the [{{cpp}}(1)|http://docs.sun.com/doc/819-2239/cpp-1?a=view] preprocessor on your program source file and then pass the results to the D compiler. The C preprocessor is described in more detail in ??The C Programming Language??.\\

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact