preprocessor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
preprocessor [2018/02/13 20:06] – wolfgangriedmann | preprocessor [2018/02/14 04:52] (current) – wolfgangriedmann | ||
---|---|---|---|
Line 3: | Line 3: | ||
The preprocessor is an unique feature of the X# compiler. In the Clipper times, the preprocessor was used to implement the commands (they were mapped to function calls), and in the VO times the preprocessor was present, but very few people used it. | The preprocessor is an unique feature of the X# compiler. In the Clipper times, the preprocessor was used to implement the commands (they were mapped to function calls), and in the VO times the preprocessor was present, but very few people used it. | ||
- | Now, in the X# compiler it is again a very powerful tool. It can be used to implement commands for FoxPro | + | The simpliest statement is the #ifdef, usable for conditional compilation, |
+ | < | ||
+ | super: | ||
+ | #else | ||
+ | super: | ||
+ | # | ||
+ | |||
+ | Now, in the X# compiler it is again a very powerful tool. It can be used to implement commands for compatibility | ||
< | < | ||
[VIA < | [VIA < | ||
Line 16: | Line 23: | ||
< | < | ||
Source: [[https:// | Source: [[https:// | ||
+ | |||
+ | The development team has ported a Harbour app to X# using the preprocessor to translate the way @x,y SAY...GET | ||
But it can also be used to write less code for MVVM ViewModels: | But it can also be used to write less code for MVVM ViewModels: |
preprocessor.txt · Last modified: 2018/02/14 04:52 by wolfgangriedmann