Log a warning if the specified name is empty or whitespace‐only.

Synopsis

Declared in <balm_metrics.h>

static
void
logEmptyName(
    char const* name,
    NameType type,
    char const* file,
    int line);

Description

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.

Parameters

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

Created with MrDocs