Skip to content

Please add with-cached-reader-conditionals #1176

@cbaggers

Description

@cbaggers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions