Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [PROPOSAL] A couple of changes in "import.ext"
Re: [PROPOSAL] A couple of changes in "import.ext" [message #56959 is a reply to message #56957] Tue, 04 May 2021 07:50 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
mdelfede wrote on Tue, 04 May 2021 01:30
mirek wrote on Mon, 03 May 2021 08:45


Yes. I gave you a pointer to the code, did not I?


Yep, and the part 1 is almost done. I just need to know which flags are available at build time and how to read them... if you
can point me in the right direction you'll spare me some time.
By now I added an optional (flags) part, where 'flags' can be any expression, for example:
TRUE
true
1
FALSE
false
0
!flag && (flag1 || flag2)
!flag && flag1 || flag2

with ! (or ~) is the negation, && is AND, || is OR, precedence is UNARY > && > ||.

For example:
files mypath/*.cpp;


Behaves as usual.
files(flagPosix && !flagSomething) mypath/*.cpp;

fetches the files only if flagPosix is true and flagSomething is false.
This applies also to other items (include, exclude, etc).


Just need to evaluate the flag(s) and it's complete.

Ciao

Max


Is it using MatchWhen? It should.

Flags will need to be passed as additional parameter.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Import external library - Include files depending on OS
Next Topic: [BUG] Preprocess + pkg-config
Goto Forum:
  


Current Time: Sun May 12 01:33:17 CEST 2024

Total time taken to generate the page: 0.03593 seconds