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

1. vrcore -> vrcommon 2. AssertMsg -> cerr #1654

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

Conversation

jiapei100
Copy link

@jiapei100 jiapei100 commented May 13, 2022

  1. vrcore -> vrcommon
  2. AssertMsg -> cerr

@okawo80085
Copy link

  1. is fine
  2. is not fine, AssertMsg should keep being a function or at least a macro, it should not be replaced by std::cerr stream

@jiapei100
Copy link
Author

  1. is fine
  2. is not fine, AssertMsg should keep being a function or at least a macro, it should not be replaced by std::cerr stream

Hi, @okawo80085

Look at this file: https://github.com/ValveSoftware/openvr/blob/master/samples/shared/strtools.cpp, all AssertMsg() have been commented out ...
So, the best option is to remove all AssertMsg() ????

@okawo80085
Copy link

Just no.

Just because it was removed from one place does not mean it should be removed from another, it's an assertive log, apart from logging it also plays a role of an assert, i.e. it seg faults the process.

Replacing it with just a log, which is not wrapped in anything and hurts flexibility, is plain wrong.

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

2 participants