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

Add get,set verbose for Index in c_api #1790

Closed
wants to merge 2 commits into from

Conversation

ava57r
Copy link
Contributor

@ava57r ava57r commented Mar 29, 2021

No description provided.

Copy link
Contributor

@Enet4 Enet4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool exists as a built-in type in C++, but not in C (IIRC it's behind a stdbool header). I have instead used int throughout the C API, and let the compiler implicitly convert booleans back and forth.

On a side note, I was considering the use of _Bool in this API, but it was unclear whether I could integrate that in other languages such as Rust, which did not have a clear ABI definition for its boolean type bool at the time.

c_api/Index_c.cpp Outdated Show resolved Hide resolved
c_api/Index_c.h Outdated Show resolved Hide resolved
Co-authored-by: Eduardo Pinho <enet4mikeenet@gmail.com>
@facebook-github-bot
Copy link
Contributor

@mdouze has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ava57r ava57r deleted the index-verbose branch April 22, 2021 12:28
@facebook-github-bot
Copy link
Contributor

@mdouze merged this pull request in 513f895.

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

Successfully merging this pull request may close these issues.

3 participants