[#BloombergLP-bsls-debugprint-0d3] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::debugprint :relfileprefix: ../../ :mrdocs: `debugprint` overloads == Synopses Declared in `<bsls_bsltestutil.h>` Print to the console the string "true" if the specified `v` is true, and the string "false" otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-01.adoc[debugprint](bool v); ---- [.small]#xref:BloombergLP/bsls/debugprint-01.adoc[_» more..._]# Print to the console the specified character, `v`, enclosed by single‐quote characters ('). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0e.adoc[debugprint](char v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0e.adoc[_» more..._]# See the `float` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0c64.adoc[debugprint](double v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0c64.adoc[_» more..._]# Print to the console the specified value, `v`, formatted as a string enclosed by single‐quote characters ('). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-050.adoc[debugprint](float v); ---- [.small]#xref:BloombergLP/bsls/debugprint-050.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0c5.adoc[debugprint](int v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0c5.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0c0.adoc[debugprint](long v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0c0.adoc[_» more..._]# See the `float` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0acf.adoc[debugprint](long double v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0acf.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0c6c.adoc[debugprint](long long v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0c6c.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0fc.adoc[debugprint](short v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0fc.adoc[_» more..._]# Print to the console the specified integer value, `v`, formatted as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0c2.adoc[debugprint](signed char v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0c2.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0b1.adoc[debugprint](unsigned char v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0b1.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-06.adoc[debugprint](unsigned int v); ---- [.small]#xref:BloombergLP/bsls/debugprint-06.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0b6.adoc[debugprint](unsigned long v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0b6.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-079.adoc[debugprint](unsigned long long v); ---- [.small]#xref:BloombergLP/bsls/debugprint-079.adoc[_» more..._]# See the `signed char` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0da.adoc[debugprint](unsigned short v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0da.adoc[_» more..._]# See the `const char *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-055.adoc[debugprint](char* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-055.adoc[_» more..._]# Print to the console the specified memory address, `v`, formatted as a hexadecimal integer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0f2.adoc[debugprint](void* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0f2.adoc[_» more..._]# See the `const char *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-03.adoc[debugprint](char volatile* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-03.adoc[_» more..._]# See the `void *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0ce.adoc[debugprint](void volatile* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0ce.adoc[_» more..._]# Print to the console the specified string, `v`, enclosed by quote characters ("), unless `v` is null, in which case print `(null)` (without quotes of any kind). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0ac0.adoc[debugprint](char const* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0ac0.adoc[_» more..._]# See the `void *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-0f6.adoc[debugprint](void const* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-0f6.adoc[_» more..._]# See the `const char *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-076.adoc[debugprint](char const volatile* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-076.adoc[_» more..._]# See the `void *` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bsls/debugprint-02.adoc[debugprint](void const volatile* v); ---- [.small]#xref:BloombergLP/bsls/debugprint-02.adoc[_» more..._]# Print to the console the specified function pointer, `v`, formatted as a hexadecimal integer. On some platforms (notably Windows), a function pointer is treated differently from an object pointer, and the compiler will not be able to determine which `void *` overload of `debugprint` should be used for a function pointer. Therefore an overload of `debugprint` is provided specifically for function pointers. Because the type signature of a function pointer varies with its return type as well as with its argument list, a template function is used, to provide matches for all return types. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class RESULT> void xref:BloombergLP/bsls/debugprint-070.adoc[debugprint](RESULT(* v)()); ---- [.small]#xref:BloombergLP/bsls/debugprint-070.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#