macoslib/macoslib — pull request #12 by ktekinay (2012-12-02 04:27:31+00:00)
Title: Caching for IsFunctionAvailable, minor changes

- Added caching for System.IsFunctionAvailable calls.
- CoreFoundation._TestSelf: Created switches as constants for each test category.
- CFBundle.Load: Removed older system function check and call, raise any returned CFError as an exception.
- ATSFont.File: Added check for older function because the documentation for both functions seems to have
dropped off of Apple's site except for a PDF that says it's all deprecated as of OS X 10.6 in favor of
Core Text.
- Win32Error.FormatErrorMessage: Added caching and checks for both system functions, just to be safe.