[PD-cvs] externals/clr/pd PureData.cs,1.3,1.4

Thomas Grill xovo at users.sourceforge.net
Mon Mar 6 02:10:38 CET 2006


Update of /cvsroot/pure-data/externals/clr/pd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11843/clr/pd

Modified Files:
	PureData.cs 
Log Message:
avoid memory allocation
look up virtual methods

Index: PureData.cs
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/pd/PureData.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PureData.cs	6 Mar 2006 00:35:40 -0000	1.3
--- PureData.cs	6 Mar 2006 01:10:36 -0000	1.4
***************
*** 34,48 ****
          private readonly void *ptr;
  
!         protected virtual void MethodBang() { Post("No bang handler"); }
  
!         protected virtual void MethodFloat(float f) { Post("No float handler"); }
  
!         protected virtual void MethodSymbol(Symbol s) { Post("No symbol handler"); }
  
!         protected virtual void MethodPointer(Pointer p) { Post("No pointer handler");}
  
!         protected virtual void MethodList(AtomList lst) { Post("No list handler"); }
  
!         protected virtual void MethodAnything(Symbol tag,AtomList lst) { Post("No anything handler"); }
      }
  }
--- 34,48 ----
          private readonly void *ptr;
  
!         protected virtual void MethodBang() { throw new System.NotImplementedException("Bang handler not defined"); }
  
!         protected virtual void MethodFloat(float f) { throw new System.NotImplementedException("Float handler not defined"); }
  
!         protected virtual void MethodSymbol(Symbol s) { throw new System.NotImplementedException("Symbol handler not defined"); }
  
!         protected virtual void MethodPointer(Pointer p) { throw new System.NotImplementedException("Pointer handler not defined"); }
  
!         protected virtual void MethodList(AtomList lst) { throw new System.NotImplementedException("List handler not defined"); }
  
!         protected virtual void MethodAnything(Symbol tag,AtomList lst) { throw new System.NotImplementedException("Anything handler not defined"); }
      }
  }





More information about the Pd-cvs mailing list