Le 2025-01-03 à 16:19, Ilya Razmanov a écrit :
> On 03.01.2025 22:42, Leroy wrote:
>
>> That works alright. But, I've use this for a long time
>>
>> #ifndef(Get)
>> do what ever
>> #end
>
> LOL. That's too simple to think of it ;-)))
>
>
The includes from the distribution use a trick like that.
#ifndef(Flag)
#declare Flag=version;
do include stuff
#end
This prevent parsing the include multiple times if it get formally
included and included by another include.
Post a reply to this message
|