B4R Question B4R: conditional file include compilation

peacemaker

Expert
Licensed User
Longtime User
Hi, All and @Erel ,

Is it possible somehow to use in B4R 4.0 a module .bas file of various versions according to some condition in the single project?
Various sensors that use lots of common code, but individual Inline-C libraries and code part in these .bas module files.
Any possibility to maintain the single common code with various optional module file ?
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
In a code module, I don't think so, but in a full project, where you use the code module, then yes
I don't know (never tried) if conditional symbols are saved into code modules individually

1754660459907.png
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Trouble is that libs are different for 3 different sensors (and objects and methods are different a bit), but main is that RAM is very tight, so it needs to separate sensors maximally, by the file code module.
But all other code must be shared.

Is it hard to make "b4x_include 'file.bas'" directive for all IDEs of the family, @Erel ?
 
Last edited:
Upvote 0
Top