diff options
Diffstat (limited to 'docs/development/c-bindings.rst')
-rw-r--r-- | docs/development/c-bindings.rst | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/development/c-bindings.rst b/docs/development/c-bindings.rst index 43ec4d8d..8a9bb6de 100644 --- a/docs/development/c-bindings.rst +++ b/docs/development/c-bindings.rst @@ -167,15 +167,22 @@ the necessarily type definitions are in place. Finally, add an entry to ``CONDITIONAL_NAMES`` with all of the things you want to conditionally export:: - CONDITIONAL_NAMES = { - ... - "Cryptography_HAS_QUANTUM_TRANSMOGRIFICATION": [ + def cryptography_has_quantum_transmogrification(): + return [ "QM_TRANSMOGRIFICATION_ALIGNMENT_LEFT", "QM_TRANSMOGRIFICATION_ALIGNMENT_RIGHT", - "QM_transmogrify" + "QM_transmogrify", ] + + + CONDITIONAL_NAMES = { + ... + "Cryptography_HAS_QUANTUM_TRANSMOGRIFICATION": ( + cryptography_has_quantum_transmogrification + ), } + Caveats ~~~~~~~ |