CUBRID Engine  latest
error_context.cpp File Reference
#include "error_context.hpp"
#include "error_code.h"
#include "error_manager.h"
#include "memory_alloc.h"
#include <cstring>
Include dependency graph for error_context.cpp:

Go to the source code of this file.

Namespaces

 cuberr
 

Macros

#define ERROR_CONTEXT_LOG(...)   if (m_logging) _er_log_debug (ARG_FILE_LINE, __VA_ARGS__)
 
#define ERMSG_MSG   "{ %p: errid=%d, sev=%d, fname=%s, line=%d, msg_area=%p(%s)_size=%zu, msgbuf=%p(%s), args=%p_n=%d }"
 
#define ERMSG_ARGS(em)
 
#define ERMSG_LOG(text, var)   ERROR_CONTEXT_LOG (text #var " = " ERMSG_MSG, ERMSG_ARGS (var))
 

Variables

const bool cuberr::LOG_ME = false
 
thread_local context * cuberr::tl_Context_p = NULL
 

Macro Definition Documentation

#define ERMSG_ARGS (   em)
Value:
&(em), (em).err_id, (em).severity, (em).file_name, (em).line_no, (em).msg_area, (em).msg_area, \
(em).msg_area_size, (em).msg_buffer, (em).msg_buffer, (em).args, (em).nargs

Definition at line 43 of file error_context.cpp.

#define ERMSG_LOG (   text,
  var 
)    ERROR_CONTEXT_LOG (text #var " = " ERMSG_MSG, ERMSG_ARGS (var))
#define ERMSG_MSG   "{ %p: errid=%d, sev=%d, fname=%s, line=%d, msg_area=%p(%s)_size=%zu, msgbuf=%p(%s), args=%p_n=%d }"

Definition at line 42 of file error_context.cpp.

#define ERROR_CONTEXT_LOG (   ...)    if (m_logging) _er_log_debug (ARG_FILE_LINE, __VA_ARGS__)

Definition at line 40 of file error_context.cpp.