Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
be7fdab62e
commit
afd67f8c67
5 changed files with 57 additions and 16 deletions
|
|
@ -32,6 +32,7 @@ PY2TO3 = 2to3 -x import
|
|||
CPP_TEST_CASES += \
|
||||
argcargvtest \
|
||||
python_autodoc \
|
||||
python_append \
|
||||
callback \
|
||||
complextest \
|
||||
director_stl \
|
||||
|
|
|
|||
4
Examples/test-suite/python/python_append_runme.py
Normal file
4
Examples/test-suite/python/python_append_runme.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from python_append import *
|
||||
t=Test()
|
||||
t.func()
|
||||
t.static_func()
|
||||
32
Examples/test-suite/python_append.i
Normal file
32
Examples/test-suite/python_append.i
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Testcase to test %pythonprepend and %pythonappend
|
||||
*/
|
||||
|
||||
%module python_append
|
||||
|
||||
%pythonappend Test::func %{
|
||||
pass
|
||||
%}
|
||||
|
||||
%pythonprepend Test::func %{
|
||||
pass
|
||||
%}
|
||||
|
||||
%pythonappend Test::static_func %{
|
||||
pass
|
||||
%}
|
||||
|
||||
%pythonprepend Test::static_func {
|
||||
pass
|
||||
}
|
||||
|
||||
%inline %{
|
||||
|
||||
class Test {
|
||||
public:
|
||||
static void static_func() {};
|
||||
void func() {};
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue