-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Can be found at: https://github.com/cbaggers/with-cached-reader-conditionals
Exposes #'call-with-cached-reader-conditionals and the macro with-cached-reader-conditionals
Lets you call a function and returns the first result of that function as the first result and the returns a list of the 'feature-expression pairs' as the second result.
A 'feature-expression pair' is defined as: A list of length 2 where the first element is a valid lisp feature-expression and the second element is t or nil depending on whether the feature expression succeeded for the current system.
It does this by rebinding the #+ and #- conditional reader macros for the duration of the call so that they will work as normal but also record the feature expressions they are given.