Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: FP.cpp
- Revision:
- 3:e0f19cdaa46e
- Parent:
- 2:bc7c28fe64b6
--- a/FP.cpp	Sat Mar 08 00:35:16 2014 +0000
+++ b/FP.cpp	Sun Apr 13 22:31:44 2014 +0000
@@ -31,6 +31,21 @@
 }
 
 template<class retT, class argT>
+bool FP<retT, argT>::attached()
+{
+    return obj_callback || c_callback;
+}
+
+
+template<class retT, class argT>
+void FP<retT, argT>::detach()
+{
+    obj_callback = 0;
+    c_callback = 0;
+}
+
+
+template<class retT, class argT>
 void FP<retT, argT>::attach(retT (*function)(argT))
 {
     c_callback = function;