WPILibC++
2027.0.0-alpha-4
Loading...
Searching...
No Matches
deprecated.hpp
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
#pragma once
6
7
#ifndef WPI_IGNORE_DEPRECATED
8
#ifdef __GNUC__
9
#define WPI_IGNORE_DEPRECATED \
10
_Pragma("GCC diagnostic push") \
11
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
12
#elif defined(_WIN32)
13
#define WPI_IGNORE_DEPRECATED _Pragma("warning(disable : 4996)")
14
#else
15
#define WPI_IGNORE_DEPRECATED
16
#endif
17
18
#endif
19
20
#ifndef WPI_UNIGNORE_DEPRECATED
21
#ifdef __GNUC__
22
#define WPI_UNIGNORE_DEPRECATED _Pragma("GCC diagnostic pop")
23
#elif defined(_WIN32)
24
#define WPI_UNIGNORE_DEPRECATED _Pragma("warning(default : 4996)")
25
#else
26
#define WPI_UNIGNORE_DEPRECATED
27
#endif
28
#endif
wpi
util
deprecated.hpp
Generated on
for WPILibC++ by
1.15.0