void Logging::setLoggingPrefix(const char *prefix, ...) { char buf[1024]; va_list va; va_start(va, prefix); vsnprintf(buf, sizeof(buf), prefix, va); va_end(va); prefix_ = buf; updateClassName(); }
Logging::Logging(const char *prefix, ...) : prefix_(), className_(), enabled_(false) { char buf[1024]; va_list va; va_start(va, prefix); vsnprintf(buf, sizeof(buf), prefix, va); va_end(va); prefix_ = buf; updateClassName(); }
StaticClassName::StaticClassName(ExpressionPtr classExp) : m_class(classExp), m_self(false), m_parent(false), m_static(false), m_redeclared(false), m_present(false), m_unknown(true) { updateClassName(); if (m_origClassName == "parent") { m_parent = true; } else if (m_origClassName == "self") { m_self = true; } else if (m_origClassName == "static") { m_static = true; m_present = true; m_class = classExp; m_origClassName = ""; } }