Created
June 26, 2014 03:42
-
-
Save evgeny-t/ae0e5d0be8ee981391ac to your computer and use it in GitHub Desktop.
SWIG doesn't expand macro definition http://stackoverflow.com/questions/24402221/swig-doesnt-expand-macro-definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "foo.h" | |
_Y(void) dummy() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef FOO_H | |
#define FOO_H | |
#define _X(x) x | |
#define _Y _X | |
/* line 6 */ _Y(void) dummy(); | |
#endif // FOO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%module mylib | |
%{ | |
#include "foo.h" | |
%} | |
%include <windows.i> | |
%include "foo.h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment