Skip to content

Instantly share code, notes, and snippets.

@evgeny-t
Created June 26, 2014 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evgeny-t/ae0e5d0be8ee981391ac to your computer and use it in GitHub Desktop.
Save evgeny-t/ae0e5d0be8ee981391ac to your computer and use it in GitHub Desktop.
#include "foo.h"
_Y(void) dummy() { }
#ifndef FOO_H
#define FOO_H
#define _X(x) x
#define _Y _X
/* line 6 */ _Y(void) dummy();
#endif // FOO_H
%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