Skip to content

Add flags helper #284

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

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Add flags helper #284

merged 1 commit into from
Nov 15, 2021

Conversation

kleisauke
Copy link
Member

Similar to #47, but for flags (e.g. VipsForeignPngFilter). Perhaps not very useful since that is the only flag/bitfield available in the public API of libvips (context: kleisauke/net-vips#106).

I currently use this for wasm-vips here:
https://github.com/kleisauke/wasm-vips/blob/fafd4113090cf6b319d31d7db1f43f41f9b16f16/build/gen_type_declarations.py#L278
and:
https://github.com/kleisauke/wasm-vips/blob/fafd4113090cf6b319d31d7db1f43f41f9b16f16/build/gen_cpp_binding.py#L260

Similar to libvips#47, but for flags (e.g. VipsForeignPngFilter).
@jcupitt jcupitt merged commit 1e66eef into libvips:master Nov 15, 2021
jcupitt added a commit that referenced this pull request Nov 15, 2021
and neaten the loops slightly

see #284
@jcupitt
Copy link
Member

jcupitt commented Nov 15, 2021

Good idea! I tidied the loops slightly.

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

Successfully merging this pull request may close these issues.

2 participants