[Gambas-user] any way to set variable macros like C, ?

Fabien Bodard gambas.fr at gmail.com
Thu Jul 19 16:23:36 CEST 2018


You

Le jeu. 19 juil. 2018 16:07, PICCORO McKAY Lenz <mckaygerhard at gmail.com> a
écrit :

> 2018-07-19 9:20 GMT-04:00 Fabien Bodard <gambas.fr at gmail.com>:
> > Don't forget that the file must be outputed as a new file for not pollute
> > the original one
>
> god! DAMN!
>
You must act like gb scripter do.

Your compiler must make a copy of the complete project dir in a temp path

Then parse all the sources files to replace the values

Then compile the temps project
And output the compiled bin where you want. ( gbc + gba)

Its matter of 20 line in a beautiful gambas script.

😊

So with your script you can say then

./mycompscript path='/usr/bin/Maurice' out=myprog.gambas
~/picoro/projects/myprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180719/298b0ca7/attachment-0001.html>


More information about the User mailing list