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 #56962 is a reply to message #56959] Tue, 04 May 2021 09:44 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
mirek wrote on Tue, 04 May 2021 07:50

Is it using MatchWhen? It should.


Mhhhh... You mean I shall use ReadWhen to extract the expression in string format and
then use MatchWhen over it ?
My way used the parser directly.
What do you thing about exposing
static bool sMatchOr(CParser& p, const Vector<String>& flag)

As public function, for example overloading MatchWhen:
bool MatchWhen(CParser& p, const Vector<String>& flag)
{
    return sMatchOr(p, flag);
}

So it's possible to do :
bool CheckImportCondition(CParser &p, const Vector<String>& flag)
{
	// no condition == true
	if(!p.Char('('))
		return true;
	bool res = MatchWhen(p, flag);
	p.PassChar(')');
	return res;
}


??
 
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 08:30:28 CEST 2024

Total time taken to generate the page: 0.02919 seconds