Home | History | Annotate | Line # | Download | only in man3
      1  1.1  christos =pod
      2  1.1  christos 
      3  1.1  christos =head1 NAME
      4  1.1  christos 
      5  1.1  christos OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC,
      6  1.1  christos OPENSSL_MSTR, OPENSSL_MSTR_HELPER
      7  1.1  christos - generic C programming utility macros
      8  1.1  christos 
      9  1.1  christos =head1 SYNOPSIS
     10  1.1  christos 
     11  1.1  christos  #include <openssl/macros.h>
     12  1.1  christos 
     13  1.1  christos  #define OPENSSL_FILE /* typically: __FILE__ */
     14  1.1  christos  #define OPENSSL_LINE /* typically: __LINE__ */
     15  1.1  christos  #define OPENSSL_FUNC /* typically: __func__ */
     16  1.1  christos 
     17  1.1  christos  #define OPENSSL_MSTR_HELPER(x) #x
     18  1.1  christos  #define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
     19  1.1  christos 
     20  1.1  christos =head1 DESCRIPTION
     21  1.1  christos 
     22  1.1  christos The macros B<OPENSSL_FILE> and B<OPENSSL_LINE>
     23  1.1  christos typically yield the current filename and line number during C compilation.
     24  1.1  christos When B<OPENSSL_NO_FILENAMES> is defined they yield B<""> and B<0>, respectively.
     25  1.1  christos 
     26  1.1  christos The macro B<OPENSSL_FUNC> attempts to yield the name of the C function
     27  1.1  christos currently being compiled, as far as language and compiler versions allow.
     28  1.1  christos Otherwise, it yields "(unknown function)".
     29  1.1  christos 
     30  1.1  christos The macro B<OPENSSL_MSTR> yields the expansion of the macro given as argument,
     31  1.1  christos which is useful for concatenation with string constants.
     32  1.1  christos The macro B<OPENSSL_MSTR_HELPER> is an auxiliary macro for this purpose.
     33  1.1  christos 
     34  1.1  christos =head1 RETURN VALUES
     35  1.1  christos 
     36  1.1  christos see above
     37  1.1  christos 
     38  1.1  christos =head1 SEE ALSO
     39  1.1  christos 
     40  1.1  christos L<crypto(7)>
     41  1.1  christos 
     42  1.1  christos =head1 HISTORY
     43  1.1  christos 
     44  1.1  christos B<OPENSSL_FUNC>, B<OPENSSL_MSTR>, and B<OPENSSL_MSTR_HELPER>
     45  1.1  christos were added in OpenSSL 3.0.
     46  1.1  christos 
     47  1.1  christos =head1 COPYRIGHT
     48  1.1  christos 
     49  1.1  christos Copyright 2018-2019 The OpenSSL Project Authors. All Rights Reserved.
     50  1.1  christos 
     51  1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     52  1.1  christos this file except in compliance with the License.  You can obtain a copy
     53  1.1  christos in the file LICENSE in the source distribution or at
     54  1.1  christos L<https://www.openssl.org/source/license.html>.
     55  1.1  christos 
     56  1.1  christos =cut
     57