-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for enum entries initialized using a macro #174
Comments
Thanks for the nice minimal example. I'll have to play with it, but I think in general yes it should support this. This part seems like it might be a bug in sphinx-c-autodoc .. c:enumerator:: VALUE_3 = ((VALUE_1) | 32768U) Looking at, https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#directive-c-enumerator .. c:enumerator:: name I don't think the |
@emezh it looks like 1.2.2 is stuck publishing for some reason... https://github.com/speedyleion/sphinx-c-autodoc/actions/runs/5407519287. I'm going to let it spin overnight and if it doesn't fix itself I'll manually publish |
@speedyleion Many thanks for the quick fix. Looks like there are some hick-ups with github since yesterday. I'm out for the most part of the next two weeks, so it may take some time before I can verify and report back. |
Took an extra day, but it's published now, https://pypi.org/project/sphinx-c-autodoc/1.2.2/ |
Consider the following C code:
When running sphinx with sphinx-c-autodoc it gives the following error:
and the generated HTML doesn't contain
VALUE_2
andVALUE_3
in the list of enum members.Removing
VALUE_3
from enum makes the error disappear (andVALUE_2
renders ok in HTML), but in real life, I have a lot of enums usingMY_MASKED
macro.Is it possible to add support for multiple entries using
MY_MASKED
macro?Thanks
The text was updated successfully, but these errors were encountered: