fix errors when used with templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8a5992404a
commit
e640a7c2b9
1 changed files with 4 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#include <stdio.h>
|
||||
%}
|
||||
|
||||
%include <pymacros.swg>
|
||||
|
||||
/*
|
||||
Attribute implementation using JOHN E LENZ ideas.
|
||||
|
||||
|
|
@ -142,9 +144,9 @@
|
|||
//
|
||||
|
||||
%define %attribute(Class, type, attr, get, ...)
|
||||
%attribute_T(Class, #@Class, SWIG_arg(type), attr, get, __VA_ARGS__)
|
||||
%attribute_T(SWIG_arg(Class), SWIG_Mangle(Class), SWIG_arg(type), attr, get, __VA_ARGS__)
|
||||
%enddef
|
||||
|
||||
%define %attribute_ref(Class, type, refname, ...)
|
||||
%attribute_ref_T(Class, #@Class, SWIG_arg(type), refname, __VA_ARGS__)
|
||||
%attribute_ref_T(SWIG_arg(Class), SWIG_Mangle(Class), SWIG_arg(type), refname, __VA_ARGS__)
|
||||
%enddef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue