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

Put DiagnosticStream and clr exports in libspirv namespace #20

Merged
merged 1 commit into from
Nov 20, 2015

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Nov 20, 2015

Each exported functions either has an "spv" prefix, or is in the libspirv
namespace.

Fixes #18

Each exported functions either has an "spv" prefix, or is inthe libspirv
namespace.

Fixes KhronosGroup#18
@@ -27,6 +27,8 @@
#include "print.h"

#if defined(SPIRV_LINUX) || defined(SPIRV_MAC)
namespace libspirv {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be moved above the #if macro check so we don't need to have to duplicate it again for the windows case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought about that while coding it. I didn't want to have a namespace libspirv around the #include of <Windows.h> So either we have to declare the libspirv namespace twice, or we have to do the conditional compilation of defined(SPIRV_WINDOWS) twice.
Sorry I didn't reply to this earlier.

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense. Thanks!

@dekimir
Copy link

dekimir commented Nov 20, 2015

+2 with minor nitpicks

@dneto0 dneto0 merged commit 0165636 into KhronosGroup:master Nov 20, 2015
@dneto0 dneto0 deleted the no-pollute-namespace branch November 20, 2015 16:14
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.

library exposes global functions in clr:: and DiagnosticStream:: namespaces
3 participants