mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
add attributes header
This commit is contained in:
13
src/util/attributes.h
Normal file
13
src/util/attributes.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
# define atrb_deprecated __attribute__((deprecated))
|
||||
# define atrb_unused __attribute__((unused))
|
||||
# define atrb_pure __attribute__((pure))
|
||||
# define atrb_const __attribute__((const))
|
||||
#else
|
||||
# define atrb_deprecated
|
||||
# define atrb_unused
|
||||
# define atrb_pure
|
||||
# define atrb_const
|
||||
#endif
|
||||
Reference in New Issue
Block a user