mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
compiler.h: Add scanflike macro
This commit is contained in:
committed by
Xiang Xiao
parent
1f6d54fde4
commit
d167ec6038
@@ -144,6 +144,7 @@
|
||||
# define noinline_function __attribute__ ((noinline))
|
||||
|
||||
# define printflike(a, b) __attribute__((__format__ (__printf__, a, b)))
|
||||
# define scanflike(a, b) __attribute__((__format__ (__scanf__, a, b)))
|
||||
|
||||
/* GCC does not use storage classes to qualify addressing */
|
||||
|
||||
@@ -361,6 +362,7 @@
|
||||
# define noinline_function
|
||||
|
||||
# define printflike(a, b)
|
||||
# define scanflike(a, b)
|
||||
|
||||
/* The reentrant attribute informs SDCC that the function
|
||||
* must be reentrant. In this case, SDCC will store input
|
||||
@@ -489,6 +491,7 @@
|
||||
# define inline_function
|
||||
# define noinline_function
|
||||
# define printflike(a, b)
|
||||
# define scanflike(a, b)
|
||||
|
||||
/* REVISIT: */
|
||||
|
||||
@@ -590,6 +593,7 @@
|
||||
# define inline_function
|
||||
# define noinline_function
|
||||
# define printflike(a, b)
|
||||
# define scanflike(a, b)
|
||||
|
||||
# define FAR
|
||||
# define NEAR
|
||||
@@ -646,6 +650,7 @@
|
||||
# define inline_function
|
||||
# define noinline_function
|
||||
# define printflike(a, b)
|
||||
# define scanflike(a, b)
|
||||
|
||||
# define FAR
|
||||
# define NEAR
|
||||
|
||||
Reference in New Issue
Block a user