WPILibC++
2023.4.3-108-ge5452e3
deprecated.h
Go to the documentation of this file.
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
#ifndef WPIUTIL_WPI_DEPRECATED_H_
6
#define WPIUTIL_WPI_DEPRECATED_H_
7
8
#ifndef WPI_DEPRECATED
9
#define WPI_DEPRECATED(msg) [[deprecated(msg)]]
10
#endif
11
12
#ifndef WPI_IGNORE_DEPRECATED
13
#ifdef __GNUC__
14
#define WPI_IGNORE_DEPRECATED \
15
_Pragma("GCC diagnostic push"
) \
16
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
17
#elif defined(_WIN32)
18
#define WPI_IGNORE_DEPRECATED _Pragma("warning(disable : 4996)"
)
19
#endif
20
21
#endif
22
23
#ifndef WPI_UNIGNORE_DEPRECATED
24
#ifdef __GNUC__
25
#define WPI_UNIGNORE_DEPRECATED _Pragma("GCC diagnostic pop"
)
26
#elif defined(_WIN32)
27
#define WPI_UNIGNORE_DEPRECATED _Pragma("warning(default : 4996)"
)
28
#endif
29
#endif
30
31
#endif
// WPIUTIL_WPI_DEPRECATED_H_
wpi
deprecated.h
Generated on Mon Jul 10 2023 17:03:00 for WPILibC++ by
1.9.4