Function name

Synopsis

#include <src/uvw/emitter.h>

const char * name() const noexcept

Description

Returns the error name for the given error code.

Leaks a few bytes of memory when you call it with an unknown error code.

Returns
The error name for the given error code.

Source

Lines 22-24 in src/uvw/emitter.cpp. Line 60 in src/uvw/emitter.h.

UVW_INLINE const char * ErrorEvent::name() const noexcept {
    return uv_err_name(ec);
}





Add Discussion as Guest

Log in