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

Stop using IF in our Cython code #545

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

godlygeek
Copy link
Contributor

This has been deprecated for a while. Let's switch to using runtime checks for things that can be checked at runtime, and inline C++ code with conditional compilation for things that need to be checked at compile time.

@godlygeek godlygeek self-assigned this Feb 8, 2024
@godlygeek godlygeek marked this pull request as draft February 8, 2024 18:30
@godlygeek
Copy link
Contributor Author

This'll need to be rebased after #546 lands.

This has been deprecated for a while. Let's switch to using runtime
checks for things that can be checked at runtime, and inline C++ code
with conditional compilation for things that need to be checked at
compile time.

Signed-off-by: Matt Wozniski <[email protected]>
@godlygeek godlygeek marked this pull request as ready for review February 12, 2024 22:35
cdef extern from "sys/prctl.h":
int prctl(int, char*, char*, char*, char*)

cdef extern from *:
Copy link
Member

Choose a reason for hiding this comment

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

Oh, nice approach ❤️

@pablogsal pablogsal merged commit ce382d6 into bloomberg:main Feb 13, 2024
18 checks passed
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.

2 participants