Leonid.Kogan@... wrote:
> Hi
>
>
>
> I am trying to define a macro in an interface file that uses __LINE__
> and __FILE__. Unfortunately, SWIG expands __LINE__ and __FILE__ when it
> generates .cxx file. As the result line shows the location of the macro
> in the interface file and file expands to an interface file name. The
> intent is to pass __LINE__ and __FILE__ as is in a .cxx file and let C++
> compiler to the job of __LINE__ and __FILE__ expansion.
>
>
>
> Is it possible to achieve?
>
Can you give an example? I put together an example and that works fine.
William
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user