Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Create macro fallback support for <nv/target> in C++03 and C #204

Merged
merged 3 commits into from
Oct 1, 2021

Conversation

wmaxey
Copy link
Member

@wmaxey wmaxey commented Sep 10, 2021

Adds better support for units that compile with C or C++03. This is due to variadic macros being an extension that causes build failures when compiled with pedantic warnings enabled.

NV_IF_TARGET - Accepts two arguments in C and C++03, can accept 3 in modern dialects.
NV_IF_ELSE_TARGET - Accepts three arguments in C and all C++ dialects.

NV_DISPATCH_TARGET - Entirely removed as this is impossible to support.

@wmaxey wmaxey merged commit ef43fb9 into main Oct 1, 2021
@wmaxey wmaxey deleted the bugfix/nv_target_c98 branch October 1, 2021 19:12
@wmaxey wmaxey added this to the 1.7.0 milestone Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants