add Luigi's static patch for extended variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c0c3495ee4
commit
d94bb6260d
3 changed files with 43 additions and 4 deletions
|
|
@ -33,3 +33,19 @@ double ExtendMe_ExtendVar_get(ExtendMe *thisptr) {
|
|||
return value;
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
%{
|
||||
class Foo
|
||||
{
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
%extend {
|
||||
static const int Bar = 42;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue