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

rename SetTraceLog to SetTraceLogLevel #276

Merged

Conversation

worldwalker2000
Copy link
Contributor

The C function in raylib is SetTraceLogLevel but in the go binding is SetTraceLog. I found this annoying so I have opened a pull request to fix it. If you want me to add other functions with the old name as well for backwards compatibility let me know. I just think that the Go API should match the C api. If you don't want to change this that's fine, then just close this PR.

@JupiterRider
Copy link
Contributor

Could you please fix the comment as well? We usually have the function name inside the comment. Someone must have forgotten that too.

// SetTraceLogLevel - Set the current threshold (minimum) log level
func SetTraceLogLevel(logLevel TraceLogLevel) {

Don't know exactly why, but found this explanation:
https://stackoverflow.com/questions/35591301/function-name-in-comment

@worldwalker2000
Copy link
Contributor Author

I have updated the comments for both SetTraceLogLevel and TraceLog

@gen2brain gen2brain merged commit 7de2ce5 into gen2brain:master Aug 18, 2023
4 checks passed
@gen2brain
Copy link
Owner

Merged, thanks.

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.

None yet

3 participants