[#LDBG_TYPE_AND_LEVEL]
= LDBG&lowbar;TYPE&lowbar;AND&lowbar;LEVEL
:mrdocs:

Expand LDBG() when both a debug type and a level are provided&period;

== Synopsis

Declared in `&lt;llvm&sol;Support&sol;DebugLog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define LDBG&lowbar;TYPE&lowbar;AND&lowbar;LEVEL(TYPE, LEVEL)

----

== Description

When LDBG() is called with 2 arguments, the first argument is forced to be the type for consistency in the codebase&period; We trick this by casting the first argument to a (const char &ast;) which won&apos;t compile with an int&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *TYPE*
| Debug type string (cast to `const` char &ast;)&period;
| *LEVEL*
| Verbosity level required for the output&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
