Function error

Summary

#include <src/c4/yml/common.hpp>

(1) void error(const char *msg, size_t msg_len, Location loc)

(2) void error(const char *msg, size_t msg_len)

(3) template <size_t N>
    void error(const char(&msg)[N], Location loc)

(4) template <size_t N>
    void error(const char(&msg)[N])

Function overload

Synopsis

#include <src/c4/yml/common.hpp>

void error(const char *msg, size_t msg_len, Location loc)

Description

trigger an error: call the current error callback.

Source

Lines 133-136 in src/c4/yml/common.cpp. Line 131 in src/c4/yml/common.hpp.

void error(const char *msg, size_t msg_len, Location loc)
{
    s_default_callbacks.error(msg, msg_len, loc);
}

Synopsis

#include <src/c4/yml/common.hpp>

void error(const char *msg, size_t msg_len)

Description

No description yet.

Source

Lines 133-136 in src/c4/yml/common.hpp.

inline void error(const char *msg, size_t msg_len)
{
    error(msg, msg_len, Location{});
}

Synopsis

#include <src/c4/yml/common.hpp>

template <size_t N>
void error(const char(&msg)[N], Location loc)

Description

No description yet.

Source

Lines 138-142 in src/c4/yml/common.hpp.

template<size_t N>
inline void error(const char (&msg)[N], Location loc)
{
    error(msg, N-1, loc);
}

Synopsis

#include <src/c4/yml/common.hpp>

template <size_t N>
void error(const char(&msg)[N])

Description

No description yet.

Source

Lines 144-148 in src/c4/yml/common.hpp.

template<size_t N>
inline void error(const char (&msg)[N])
{
    error(msg, N-1, Location{});
}





Add Discussion as Guest

Log in