OPENSSL_FILE.pod 1.5 KB

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