Home | History | Annotate | Download | only in snippet

Lines Matching refs:function

1 /* A C macro for emitting warnings if a function is used.
17 /* _GL_WARN_ON_USE (function, "literal string") issues a declaration
18 for FUNCTION which will then trigger a compiler warning containing
19 the text of "literal string" anywhere that function is called, if
23 This macro is useful for marking a function as a potential
25 instructions on the replacement function that should be used
26 instead. However, one of the reasons that a function is a
28 FUNCTION with a different signature in C is a compilation error, so
30 that programs that avoid the problematic FUNCTION do not fail to
32 function. But this implies that _GL_WARN_ON_USE is only safe to
33 use if FUNCTION is known to already have a declaration. Use of
35 the declaration of FUNCTION; but undefining FUNCTION first is part
39 C++, it is only safe to use if FUNCTION has no overloads.
53 possible to write a wrapper accessor function, and poison that
68 # define _GL_WARN_ON_USE(function, message) \
69 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
71 /* Verify the existence of the function. */
72 # define _GL_WARN_ON_USE(function, message) \
73 extern __typeof__ (function) function
75 # define _GL_WARN_ON_USE(function, message) \
80 /* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
81 is like _GL_WARN_ON_USE (function, "string"), except that the function is
88 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
89 extern rettype function parameters_and_attributes \
92 /* Verify the existence of the function. */
93 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
94 extern rettype function parameters_and_attributes
96 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \