-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef SNAIL_SN_ATTR_H | ||
#define SNAIL_SN_ATTR_H | ||
|
||
#ifdef __has_attribute | ||
# if __has_attribute (nonstring) | ||
# define SN_BUFFER __attribute__ ((nonstring)) | ||
# else | ||
# define SN_BUFFER | ||
# endif | ||
# if __has_attribute (unused) | ||
# define SN_UNUSED __attribute__ ((unused)) | ||
# else | ||
# define SN_UNUSED | ||
# endif | ||
# if __has_attribute (always_inline) | ||
# define SN_INLINE __attribute__ ((always_inline)) | ||
# else | ||
# define SN_INLINE | ||
# endif | ||
# if __has_attribute (format) | ||
# define SN_FORMAT(FROM) __attribute__ ((format (printf, (FROM), (FROM + 1)))) | ||
# endif | ||
#else | ||
# define SN_BUFFER | ||
# define SN_UNUSED | ||
# define SN_INLINE | ||
# define SN_FORMAT | ||
#endif | ||
|
||
#endif //SNAIL_SN_ATTR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef SNAIL_SN_ATTR_H | ||
#define SNAIL_SN_ATTR_H | ||
|
||
#define SN_BUFFER | ||
#define SN_UNUSED | ||
#define SN_INLINE | ||
#define SN_FORMAT | ||
|
||
#endif //SNAIL_SN_ATTR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters