Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
a304b3b0
Commit
a304b3b0
authored
May 04, 2012
by
Alejandro Mery
Browse files
sunxi-tools.h: add simple comments
parent
077249c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
sunxi-tools.h
View file @
a304b3b0
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#ifndef _SUNXI_TOOLS_H
#ifndef _SUNXI_TOOLS_H
#define _SUNXI_TOOLS_H
#define _SUNXI_TOOLS_H
/** flat function argument as unused */
#ifdef UNUSED
#ifdef UNUSED
#elif defined(__GNUC__)
#elif defined(__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
...
@@ -24,6 +25,7 @@
...
@@ -24,6 +25,7 @@
# define UNUSED(x) UNUSED_ ## x
# define UNUSED(x) UNUSED_ ## x
#endif
#endif
/** shortcut to printf to stderr */
#define errf(...) fprintf(stderr, __VA_ARGS__)
#define errf(...) fprintf(stderr, __VA_ARGS__)
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment