$IF/ru: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 1 | + | Директива компилятора `$IF` в [[Conditional compilation/ru|условной компиляции]]. | |
| 2 | + | ||
| 3 | + | ``` pascal | |
| 3 | 4 | // директива pointermath отсутствовала в версиях FPC до 3.0.0 | |
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 5 | + | {$if FPC_VERSION > 2} | |
| 6 | + | // арифметика указателей это плохо. очень плохо | |
| 7 | + | {$pointermath off} | |
| 8 | + | {$endif} | |
| 8 | 9 | ``` | |
| 9 | 10 | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | 11 | --- | |
| 20 | - | ||
| 12 | + | *From the Free Pascal wiki, page "$IF/ru", as it stood on 2020-02-01 after a change by GAN, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
