mirror of https://github.com/libAthena/athena.git
* Added DEPRECATED macro
This commit is contained in:
parent
4190cd59b4
commit
3c737226ba
|
@ -1,4 +1,4 @@
|
||||||
// This file is part of libZelda.
|
// This file is part of libZelda.
|
||||||
//
|
//
|
||||||
// libZelda is free software: you can redistribute it and/or modify
|
// libZelda is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
@ -91,4 +91,13 @@ typedef unsigned long long Uint64;
|
||||||
#define UNUSED(x) ((void)x)
|
#define UNUSED(x) ((void)x)
|
||||||
#endif // UNUSED
|
#endif // UNUSED
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define DEPRECATED(func) func __attribute__ ((deprecated))
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define DEPRECATED(func) __declspec(deprecated) func
|
||||||
|
#else
|
||||||
|
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
|
||||||
|
#define DEPRECATED(func) func
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue