Recent

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

paule32

  • Sr. Member
  • ****
  • Posts: 383
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: 4284
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: 16781
  • Ceterum censeo Trump esse delendam
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 »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

paule32

  • Sr. Member
  • ****
  • Posts: 383
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