diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2008-02-27 15:29:55 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2008-02-27 15:29:55 +0000 |
commit | 2bef4d6b0cb8ebb4cd7e703a7ba9d280bc613767 (patch) | |
tree | 50bddee5b9967938fca03f0d6347867cd26adfa5 /Source/Modules/perl5.cxx | |
parent | 9c5610a8e9577d05eba5784c86a62e52e7cd17e2 (diff) | |
download | swig-2bef4d6b0cb8ebb4cd7e703a7ba9d280bc613767.tar.gz |
Set wrap:name for variables for use in special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Modules/perl5.cxx')
-rw-r--r-- | Source/Modules/perl5.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Modules/perl5.cxx b/Source/Modules/perl5.cxx index 67192959b..7a057901d 100644 --- a/Source/Modules/perl5.cxx +++ b/Source/Modules/perl5.cxx @@ -782,6 +782,7 @@ public: /* Create a Perl function for setting the variable value */ if (!GetFlag(n, "feature:immutable")) { + Setattr(n, "wrap:name", set_name); Printf(setf->def, "SWIGCLASS_STATIC int %s(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {\n", set_name); Printv(setf->code, tab4, "MAGIC_PPERL\n", NIL); @@ -804,6 +805,7 @@ public: } /* Now write a function to evaluate the variable */ + Setattr(n, "wrap:name", get_name); int addfail = 0; Printf(getf->def, "SWIGCLASS_STATIC int %s(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {\n", get_name); Printv(getf->code, tab4, "MAGIC_PPERL\n", NIL); |