Merge pull request #1154 from ianpartridge/xmlparser-bitcast
diff --git a/Foundation/NSObjCRuntime.swift b/Foundation/NSObjCRuntime.swift
index 70db11e..788b1ef 100644
--- a/Foundation/NSObjCRuntime.swift
+++ b/Foundation/NSObjCRuntime.swift
@@ -202,6 +202,13 @@
fatalError("\(fn) is not yet implemented", file: file, line: line)
}
+internal func NSUnsupported(_ fn: String = #function, file: StaticString = #file, line: UInt = #line) -> Never {
+ #if os(Android)
+ NSLog("\(fn) is not supported on this platform. \(file):\(line)")
+ #endif
+ fatalError("\(fn) is not supported on this platform", file: file, line: line)
+}
+
internal func NSInvalidArgument(_ message: String, method: String = #function, file: StaticString = #file, line: UInt = #line) -> Never {
fatalError("\(method): \(message)", file: file, line: line)
}