Re: [pure-lang-users] C macros
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-25 18:31:51
|
On Mon, 2008-08-25 at 13:15 -0500, Eddie Rucker wrote: > On Mon, 2008-08-25 at 13:53 -0400, John Cowan wrote: > > Eddie Rucker scripsit: > > > > > > How do I import constants defined as macros in C? > > > and also macros like > > > #define GSL_FN_FDF_EVAL_DF(FDF,x) (*((FDF)->df))(x,(FDF)->params) > > > > It's not possible, as all macros are removed in the first pass of the > > compiler and don't make it into the shared library at all. For something > > like this you need SWIG, which processes the source code. > > Since aren't too many of these macros, I might could code some of these by hand while Albert gets SWIG operational. I at least want to get the Matrix stuff and distribution stuff going right now. e.r. |