Log a warning if the specified name is empty or whitespace-only.
Declared in <balm_metrics.h>
static
void
logEmptyName(
char const* name,
NameType type,
char const* file,
int line);
If the specified name is empty or contains only whitespace, then log a warning message indicating whether name is a category or a metric, depending on the specified type, and the location at which this function is called, indicated by the specified file and line; otherwise, do nothing.
| Name | Description |
|---|---|
| name | null-terminated category or metric name to check |
| type | whether name identifies a category or a metric |
| file | source file name of the call site |
| line | source line number of the call site |