Skip to content

Commit

Permalink
Add IGNORE_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashmahar committed Sep 29, 2024
1 parent 4540949 commit 8909130
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/nvsl/common.hh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@

#define NVSL_END_IGNORE_WPEDANTIC _Pragma("GCC diagnostic pop")

#define NVSL_BEGIN_IGNORE_DEPRECATED \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")

#define NVSL_END_IGNORE_DEPRECATED _Pragma("GCC diagnostic pop")

// Do magic! Creates a unique name using the line number
#define NVSL_LINE_NAME(prefix) NVSL_JOIN(prefix, __LINE__)
#define NVSL_JOIN(symbol1, symbol2) NVSL_DO_JOIN(symbol1, symbol2)
Expand Down

0 comments on commit 8909130

Please sign in to comment.