Index: base/mac/scoped_nsexception_enabler.h |
diff --git a/base/mac/scoped_nsexception_enabler.h b/base/mac/scoped_nsexception_enabler.h |
index 3c16d2f5679035395dc426c879f50e5313724264..93242abf954e5757b09cb1fd587673fdd17b52f6 100644 |
--- a/base/mac/scoped_nsexception_enabler.h |
+++ b/base/mac/scoped_nsexception_enabler.h |
@@ -6,6 +6,8 @@ |
#define BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ |
#pragma once |
+#import <Foundation/Foundation.h> |
+ |
#include "base/base_export.h" |
#include "base/basictypes.h" |
@@ -41,6 +43,11 @@ class BASE_EXPORT ScopedNSExceptionEnabler { |
BASE_EXPORT bool GetNSExceptionsAllowed(); |
BASE_EXPORT void SetNSExceptionsAllowed(bool allowed); |
+// Calls [target performSelector:sel] with fatal-exceptions turned |
Nico
2011/12/09 22:01:07
// Calls -performSelector:sel …
|
+// off, and returns the result. If an exception is thrown during the |
+// perform, nil is returned. |
+BASE_EXPORT id PerformSelectorIgnoringExceptions(NSObject* target, SEL sel); |
Scott Hess - ex-Googler
2011/12/09 01:46:28
I wanted to have:
@implementation NSObject (AddlS
|
+ |
} // namespace mac |
} // namespace base |