fix kw in perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4693d09680
commit
8e37a7bc71
1 changed files with 22 additions and 0 deletions
|
|
@ -481,7 +481,27 @@ struct Instances {
|
||||||
%csconst(1);
|
%csconst(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(SWIGPERL)
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
|
namespace RepeatSpace {
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
one = 1,
|
||||||
|
initial = one,
|
||||||
|
two,
|
||||||
|
three,
|
||||||
|
llast = three,
|
||||||
|
end = llast
|
||||||
|
} repeat;
|
||||||
|
repeat repeatTest(repeat e) { return e; }
|
||||||
|
}
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
||||||
|
#else
|
||||||
|
%inline %{
|
||||||
|
|
||||||
namespace RepeatSpace {
|
namespace RepeatSpace {
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
@ -498,3 +518,5 @@ repeat repeatTest(repeat e) { return e; }
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue