Hi Ed,
Perhaps the best way would be to create a perl script that generates
the appropriate C code given the #defines. Inline will then take the
MD5 of that code in order to see whether anything has changed.
-Ken
On Jun 21, 2005, at 8:37 PM, Ed Peschko wrote:
hey all,
I've got a rather thorny piece of C-code I want to wrap perl around
(asa - adaptive simulated annealing (http://www.ingber.com)
Anyways, it uses *tons* of ifdefs to configure itself, and I was hoping
that I could use Inline to encapsulate those defines. Something like:
use Inline C DEFINES => \%DEFINES;
where the DEFINES hash would contain the compile parameters, and Inline
would 'remember' if a given configuration has been compiled.
I know its a long shot, but is there anything like this? And what do
people
think is the best way to handle something like this, if the above does
not exist?
Ed