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

Optimized ui_syscalls with null checks and cleanup #1243

Closed
wants to merge 4 commits into from

Conversation

Nexxus67
Copy link

Refactored ui_syscalls.cpp to include null pointer checks and removed unused syscall comments for clarity. Improved code safety by validating input values, ensuring stable execution.

@Nexxus67 Nexxus67 requested a review from a team as a code owner October 18, 2024 05:15
@ensiform
Copy link
Member

ensiform commented Oct 18, 2024

Most of these are unnecessary. And null setcolor rgba is explicitly allowed in the API so this is an invalid check. Please provide examples where these functions may be called with null input currently and is accurately not checked by the function/syscall that is used.

@Nexxus67 Nexxus67 closed this Oct 18, 2024
@Nexxus67 Nexxus67 deleted the optimize-ui-syscalls branch October 18, 2024 14:35
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