Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support defines without value (e.g. #define PDF_USE_XFA) #182

Open
mara004 opened this issue Aug 12, 2023 · 0 comments
Open

Support defines without value (e.g. #define PDF_USE_XFA) #182

mara004 opened this issue Aug 12, 2023 · 0 comments

Comments

@mara004
Copy link
Contributor

mara004 commented Aug 12, 2023

pdfium has this construct:

#ifdef PDF_ENABLE_XFA
// PDF_USE_XFA is set in confirmation that this version of PDFium can support
// XFA forms as requested by the PDF_ENABLE_XFA setting.
#define PDF_USE_XFA
#endif  // PDF_ENABLE_XFA

When passing --define PDF_ENABLE_XFA to ctypesgen, members guarded by #ifdef PDF_ENABLE_XFA correctly appear in the output file, except PDF_USE_XFA. It seems like defines without value are not supported by ctypesgen?

In this case it should be translated to PDF_USE_XFA = True in python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant