Skip to content

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Dec 18, 2025

This factors out functions for two things: casts involving pointers, and null checking. In the case of == and != operators in a non-conditional context (in operators.rs), this also adds special handling for regular pointers, where only function pointers were specially handled previously. This means that

int b = ptr == NULL;

is now translated with the is_null method as well, instead of with the == operator and core::ptr::null.

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.

1 participant