Re: [pure-lang-users] C macros
Status: Beta
Brought to you by:
agraef
From: John C. <co...@cc...> - 2008-08-25 17:53:25
|
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. -- John Cowan co...@cc... http://ccil.org/~cowan Consider the matter of Analytic Philosophy. Dennett and Bennett are well-known. Dennett rarely or never cites Bennett, so Bennett rarely or never cites Dennett. There is also one Dummett. By their works shall ye know them. However, just as no trinities have fourth persons (Zeppo Marx notwithstanding), Bummett is hardly known by his works. Indeed, Bummett does not exist. It is part of the function of this and other e-mail messages, therefore, to do what they can to create him. |