1OPENSSL_FILE(3ossl)                 OpenSSL                OPENSSL_FILE(3ossl)
2
3
4

NAME

6       OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC, OPENSSL_MSTR,
7       OPENSSL_MSTR_HELPER - generic C programming utility macros
8

SYNOPSIS

10        #include <openssl/macros.h>
11
12        #define OPENSSL_FILE /* typically: __FILE__ */
13        #define OPENSSL_LINE /* typically: __LINE__ */
14        #define OPENSSL_FUNC /* typically: __func__ */
15
16        #define OPENSSL_MSTR_HELPER(x) #x
17        #define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
18

DESCRIPTION

20       The macros OPENSSL_FILE and OPENSSL_LINE typically yield the current
21       filename and line number during C compilation.  When
22       OPENSSL_NO_FILENAMES is defined they yield "" and 0, respectively.
23
24       The macro OPENSSL_FUNC attempts to yield the name of the C function
25       currently being compiled, as far as language and compiler versions
26       allow.  Otherwise, it yields "(unknown function)".
27
28       The macro OPENSSL_MSTR yields the expansion of the macro given as
29       argument, which is useful for concatenation with string constants.  The
30       macro OPENSSL_MSTR_HELPER is an auxiliary macro for this purpose.
31

RETURN VALUES

33       see above
34

SEE ALSO

36       crypto(7)
37

HISTORY

39       OPENSSL_FUNC, OPENSSL_MSTR, and OPENSSL_MSTR_HELPER were added in
40       OpenSSL 3.0.
41
43       Copyright 2018-2019 The OpenSSL Project Authors. All Rights Reserved.
44
45       Licensed under the Apache License 2.0 (the "License").  You may not use
46       this file except in compliance with the License.  You can obtain a copy
47       in the file LICENSE in the source distribution or at
48       <https://www.openssl.org/source/license.html>.
49
50
51
523.0.5                             2022-07-05               OPENSSL_FILE(3ossl)
Impressum