1 Dec 01:27
Re: running preprocessor from lazarus
Marc Santhoff <M.Santhoff <at> t-online.de>
2006-12-01 00:27:58 GMT
2006-12-01 00:27:58 GMT
Am Donnerstag, den 30.11.2006, 23:20 +0100 schrieb Michael Van Canneyt: > > On Thu, 30 Nov 2006, Marc Santhoff wrote: > > > Hi, > > > > I know this is a question regarding fpc and lazarus, but I decided to > > post to this list: > > > > If one would want to run the complete sources of a project through a > > preprocessor transparently when compiling in the lazarus IDE, would this > > be possible with fpc and lazarus as they are now? > > Well. I thought about this issue frequently. > > FPC has no support for this currently. > It has only limited macro support, I'm sure you are aware of it, it's documented. Yes, I tried to achive it with macros, without success. > > Or will it take implementing some pipeline hooks or the like in one or > > both of them? > > > > The goal in doing so would be using a specialized macro processor > > replacing tags in the source code before feeding through fpc. > > The issue is not so easy. My first thought would be that this is > something for the IDE, as it 'knows' which files should be > preprocessed and which not, but actually doing so would require > a lot of filename juggling, as the files must exist on disk with(Continue reading)
Let me understand, you already have the preprocessor to transform your
"Pascal with Tags" into a "Pascal without tags" source code file ?
Something like:
-------------
program PreprocessorExample;
#define Pi 5
begin
Write('Pi value is ', Pi);
end.
-------------
Into something like :
-------------
.
Met vriendelijke groet,
Pieter Valentijn
Delphidreams
RSS Feed