5 OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC,
6 OPENSSL_MSTR, OPENSSL_MSTR_HELPER
7 - generic C programming utility macros
11 #include <openssl/macros.h>
13 #define OPENSSL_FILE /* typically: __FILE__ */
14 #define OPENSSL_LINE /* typically: __LINE__ */
15 #define OPENSSL_FUNC /* typically: __func__ */
17 #define OPENSSL_MSTR_HELPER(x) #x
18 #define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
22 The macros B<OPENSSL_FILE> and B<OPENSSL_LINE>
23 typically yield the current filename and line number during C compilation.
24 When B<OPENSSL_NO_FILENAMES> is defined they yield B<""> and B<0>, respectively.
26 The macro B<OPENSSL_FUNC> attempts to yield the name of the C function
27 currently being compiled, as far as language and compiler versions allow.
28 Otherwise, it yields "(unknown function)".
30 The macro B<OPENSSL_MSTR> yields the expansion of the macro given as argument,
31 which is useful for concatenation with string constants.
32 The macro B<OPENSSL_MSTR_HELPER> is an auxiliary macro for this purpose.
44 B<OPENSSL_FUNC>, B<OPENSSL_MSTR>, and B<OPENSSL_MSTR_HELPER>
45 were added in OpenSSL 3.0.
49 Copyright 2018-2019 The OpenSSL Project Authors. All Rights Reserved.
51 Licensed under the Apache License 2.0 (the "License"). You may not use
52 this file except in compliance with the License. You can obtain a copy
53 in the file LICENSE in the source distribution or at
54 L<https://www.openssl.org/source/license.html>.