Recent

Author Topic: pre-processor symbol when FPC symbol is defined/used  (Read 866 times)

paule32

  • Hero Member
  • *****
  • Posts: 645
  • One in all. But, not all in one.
pre-processor symbol when FPC symbol is defined/used
« on: April 16, 2024, 03:17:39 pm »
Hello
It is possible, to check a symbol that is used in the source code is available for the pre-processor ?
Or have I $define all symbols I want per Hand ?
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: pre-processor symbol when FPC symbol is defined/used
« Reply #1 on: April 16, 2024, 03:21:39 pm »
Documentation can be helpful at times  :)
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 18729
  • To Europe: simply sell USA bonds: dollar collapses
Re: pre-processor symbol when FPC symbol is defined/used
« Reply #2 on: April 16, 2024, 03:22:40 pm »
Code: Pascal  [Select][+][-]
  1. {$if declared(<symbol>)}
means what you want.
And, yes, you are a bit lazy in reading documentation.
« Last Edit: April 16, 2024, 03:50:22 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

paule32

  • Hero Member
  • *****
  • Posts: 645
  • One in all. But, not all in one.
Re: pre-processor symbol when FPC symbol is defined/used
« Reply #3 on: April 16, 2024, 05:11:35 pm »
Thank you. This works like a charm  ;D
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

 

TinyPortal © 2005-2018