Hello.
i replace #ifdef with #if defined for upgrade the lisibility and for the futures (for write two conditions) and i replace fprintf with perror for memory-allocation because is a operation of OS but perror give a more accurate error message.
drex_vk/kew:simplify-macro-and-add-perror into main
Hello.
i replace #ifdef with #if defined for upgrade the lisibility and for the futures (for write two conditions) and i replace fprintf with perror for memory-allocation because is a operation of OS but perror give a more accurate error message.
Hi,
Thank you for doing this. I think I prefer the short #ifdef, unless there's some advantage to #if define other than readability.
As for perror, this should probably be done, but if we are going to do it, I think we should do it in every place where it is preferred, instead of being inconsistent.
Hello thanks you for your feedback so for #if defined is better if you want to write two in condition **example #if defined(_WIN32) || defined(_WIN64) while #ifdef is not possible.
drex_vk :)
and also I'm going to put the perror not worried it was just because I wanted to know if it was valid
ok, keep let's keep the #ifdef style in that case
okay no problem
hi it's good normally I put perror everywhere I could and i remove #if defined() where I modified the #ifdef.
so your project is so very stylish and you code in objective-C ?
drex_vk :)
And look carefully just in case because sometimes I make mistakes inadvertently
No, I don't code in objective-c, but there is a little bit of objective-c and it's for the macOS media keys, which can't be done any other way. But I didn't do that one.
What I meant regarding perror is to replace fprintf in all places in /src where perror would be better, instead of having two ways, inconsistently.
Hi
Okay
so okay but what's missing in the code because I put perror where I could instead of fprintf or printf but it depends because perror is only used in OS operations
@drex_vk wrote in #208 (comment):
so okay but what's missing in the code because I put perror where I could instead of fprintf or printf but it depends because perror is only used in OS operations
There are a lot more places that use malloc for instance than those files.
okay i will fix this i do it thanks you for the feedback
Just search for fprintf. It's not that many that are relevant. Ignore miniaudio.h and others in /include directory.
okay
Use this merge commit message when completing the merge manually.
Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?