diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-08 01:59:24 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-08 01:59:24 +0000 |
commit | 91a94f0946561a6343f6169b63e538776dca867b (patch) | |
tree | 3690a5b0269ce80b8900c88cc004a3b1a4ddaa72 /PureData | |
parent | 88ae96ff82ddc836a822a55aef17ea66ca06ac65 (diff) |
finally implemented efficient method registering
other cleanups and improvements
svn path=/trunk/externals/clr/; revision=4657
Diffstat (limited to 'PureData')
-rw-r--r-- | PureData/PureData.cs | 7 |
1 files changed, 6 insertions, 1 deletions
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; @@ -59,6 +59,11 @@ namespace PureData 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); } } |