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

cleanup: change raw cerr stream output to print #4258

Merged
merged 1 commit into from
May 18, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented May 4, 2024

A small piece of the ongoing switch to std::format/print style text output. This part is for error and debugging output when reading/writing exr images.

I also switched conditional compilation to the DBG macro idiom that I've used elsewhere, where it takes a combination of DEBUG compile and setting of environment variable OIIO_DEBUG_OPENEXR to trigger the printf style debugging (the first use case of this was in our color management code, which I also modify slightly here to conform).

Also opportunistically simplify gcd declaration now that we're C++17 minimum.

A small piece of the ongoing switch to std::format/print style text
output. This part is for error and debugging output when
reading/writing exr images.

I also switched conditional compilation to the DBG macro idiom that
I've used elsewhere, where it takes a combination of DEBUG compile and
setting of environment variable OIIO_DEBUG_OPENEXR to trigger the
printf style debugging (the first use case of this was in our color
management code, which I also modify slightly here to conform).

Also opportunistically simplify gcd delcaration now that we're C++17
minimum.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented May 18, 2024

No objections for 2 weeks -> merging

@lgritz lgritz merged commit 41c8949 into AcademySoftwareFoundation:master May 18, 2024
23 of 24 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request May 20, 2024
…ation#4258)

A small piece of the ongoing switch to std::format/print style text
output. This part is for error and debugging output when reading/writing
exr images.

I also switched conditional compilation to the DBG macro idiom that I've
used elsewhere, where it takes a combination of DEBUG compile and
setting of environment variable OIIO_DEBUG_OPENEXR to trigger the printf
style debugging (the first use case of this was in our color management
code, which I also modify slightly here to conform).

Also opportunistically simplify gcd declaration now that we're C++17
minimum.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request May 21, 2024
…ation#4258)

A small piece of the ongoing switch to std::format/print style text
output. This part is for error and debugging output when reading/writing
exr images.

I also switched conditional compilation to the DBG macro idiom that I've
used elsewhere, where it takes a combination of DEBUG compile and
setting of environment variable OIIO_DEBUG_OPENEXR to trigger the printf
style debugging (the first use case of this was in our color management
code, which I also modify slightly here to conform).

Also opportunistically simplify gcd declaration now that we're C++17
minimum.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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

1 participant