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 additional Logging level functions to the logging module #1441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DJawna
Copy link

@DJawna DJawna commented Oct 22, 2024

This PR will add Log prioriyt dependent logging functions:

  • log_*

where * is: create, warning, error etc.

In addition to the message those new functions will take the Category as paraemter,
the Category needs to be converted to c_int, if that fails, Application value is taken and assumed it will be convertible to c_int.

}
}

unsafe fn sdl_log_critical(category: libc::c_int, fmt: *const libc::c_char){
Copy link
Member

Choose a reason for hiding this comment

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

There is no point in defining those, juste use sys::SDL_ functions directly. Users from sdl2 have access to sdl2::sys so there is no re-export issue.

@Cobrand
Copy link
Member

Cobrand commented Oct 24, 2024

Thanks, I will have a look once you fix my comment. Also don't forget to run cargo fmt, I'm pretty sure it fails your PR as-is.

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