csgetcptr typemap replaced by the csbody typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-06-03 22:22:09 +00:00
commit dbcd53e9d2
3 changed files with 5 additions and 3 deletions

View file

@ -28,5 +28,7 @@
%typemap(csclassmodifiers) enum SWIGTYPE "public enum" %typemap(csclassmodifiers) enum SWIGTYPE "public enum"
%typemap(csbody) enum SWIGTYPE ""
%csenum(proper); %csenum(proper);

View file

@ -2,7 +2,7 @@
* This file provides backwards compatible enum wrapping. SWIG versions 1.3.21 * This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
* and earlier wrapped global enums with constant integers in the module * and earlier wrapped global enums with constant integers in the module
* class. Enums declared within a C++ class were wrapped by constant integers * class. Enums declared within a C++ class were wrapped by constant integers
* in the Java proxy class. * in the C# proxy class.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
%typemap(ctype) enum SWIGTYPE "int" %typemap(ctype) enum SWIGTYPE "int"
@ -30,7 +30,7 @@
%typemap(csclassmodifiers) enum SWIGTYPE "" %typemap(csclassmodifiers) enum SWIGTYPE ""
%typemap(csgetcptr) enum SWIGTYPE "" %typemap(csbody) enum SWIGTYPE ""
%csenum(simple); %csenum(simple);

View file

@ -36,7 +36,7 @@
* written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum. * written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum.
* The special variable, $enumvalues, is replaced with a comma separated list of all the enum values. * The special variable, $enumvalues, is replaced with a comma separated list of all the enum values.
*/ */
%typemap(csgetcptr) enum SWIGTYPE %{ %typemap(csbody) enum SWIGTYPE %{
public readonly int swigValue; public readonly int swigValue;
public static $csclassname swigToEnum(int swigValue) { public static $csclassname swigToEnum(int swigValue) {