Page 1 of 1

IncludeByExpression

Posted: Wed Mar 26, 2008 12:30 am
by Hroudtwolf
Hi,

Just a little wish, again.
I think, it were very useful to have an include-keyword for including purebasic sources by regular expressions.

In Example like this:

Code: Select all

IncludeByExpression "/vObject_(.*)\.pb$/"
In my example would be all files included which starts with "vObjects_" and ends with ".pb".

Best regards

Wolf

Re: IncludeByExpression

Posted: Wed Mar 26, 2008 7:27 am
by IceSoft
Hroudtwolf wrote:Hi,
In my example would be all files included which starts with "vObjects_" and ends with ".pb".
Best regards
Wolf
@Wolf,
1.April is not this week ;-)

However, why you not write a 'Precompiler' Tool which change your IncludeByExpression line with the correct XIncludeFile lines?

Posted: Wed Mar 26, 2008 11:47 am
by Hroudtwolf
Hey,

My wish concerns an integration of such feature in pb.
A possible preprecessor isn't up for discussion.
Either this feature will be integrated or not. It's just my wish. ;-)

Best regards

Wolf