From df72257e674fda4865a0a2d158d95971448250e6 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 6 Mar 2006 01:10:36 +0000 Subject: avoid memory allocation look up virtual methods svn path=/trunk/externals/clr/; revision=4649 --- pd/PureData.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pd') diff --git a/pd/PureData.cs b/pd/PureData.cs index 70f3d98..d6ad3d9 100644 --- a/pd/PureData.cs +++ b/pd/PureData.cs @@ -33,16 +33,16 @@ namespace PureData // PD object pointer private readonly void *ptr; - protected virtual void MethodBang() { Post("No bang handler"); } + protected virtual void MethodBang() { throw new System.NotImplementedException("Bang handler not defined"); } - protected virtual void MethodFloat(float f) { Post("No float handler"); } + protected virtual void MethodFloat(float f) { throw new System.NotImplementedException("Float handler not defined"); } - protected virtual void MethodSymbol(Symbol s) { Post("No symbol handler"); } + protected virtual void MethodSymbol(Symbol s) { throw new System.NotImplementedException("Symbol handler not defined"); } - protected virtual void MethodPointer(Pointer p) { Post("No pointer handler");} + protected virtual void MethodPointer(Pointer p) { throw new System.NotImplementedException("Pointer handler not defined"); } - protected virtual void MethodList(AtomList lst) { Post("No list handler"); } + protected virtual void MethodList(AtomList lst) { throw new System.NotImplementedException("List handler not defined"); } - protected virtual void MethodAnything(Symbol tag,AtomList lst) { Post("No anything handler"); } + protected virtual void MethodAnything(Symbol tag,AtomList lst) { throw new System.NotImplementedException("Anything handler not defined"); } } } -- cgit v1.2.1