- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I use the IVF DEC$ directives for conditional compilation (I would use the C preprocessor only, but it does not work in include files and I don't want to change all the includes to #includes atm.).
Is there a possibility to stop compilation with IVF preprocessor? Something equivalent to the #error C preprocessor directive? I haven't found anything like this in the list of DEC$ directives in IVF. Or maybe some workaround?
Thanks for any suggestion
Best Regards
Vit
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't tried this:
(in conditional compile section)
INCLUDE "CON:"
Then abort the build by hand.
A bit clumbsy..
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way, if you use #error it won't work with all compilers (e.g. it will fail with Oracle compilers).
At the cost of some additional Makefile machinery, you could pre-process your INCLUDE files before you reach the INCLUDE compile step.
At the cost of some additional Makefile machinery, you could pre-process your INCLUDE files before you reach the INCLUDE compile step.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page