From 91a94f0946561a6343f6169b63e538776dca867b Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 8 Mar 2006 01:59:24 +0000 Subject: finally implemented efficient method registering other cleanups and improvements svn path=/trunk/externals/clr/; revision=4657 --- PureData/PureData.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'PureData') diff --git a/PureData/PureData.cs b/PureData/PureData.cs index c9ac143..6e55693 100644 --- a/PureData/PureData.cs +++ b/PureData/PureData.cs @@ -15,7 +15,7 @@ namespace PureData } // This is the base class for a PD/CLR external - public unsafe class External + public unsafe abstract class External { // PD object pointer private readonly void *ptr; @@ -58,6 +58,11 @@ namespace PureData [MethodImplAttribute (MethodImplOptions.InternalCall)] protected extern static void Add(MethodList m); + [MethodImplAttribute (MethodImplOptions.InternalCall)] + protected extern static void Add(Symbol sel,MethodList m); + + protected static void Add(string sel,MethodList m) { Add(new Symbol(sel),m); } + [MethodImplAttribute (MethodImplOptions.InternalCall)] protected extern static void Add(MethodAnything m); } -- cgit v1.2.1