OsmAnd
Packages | Defines | Typedefs | Functions | Variables
jni/protobuf/google/protobuf/stubs/common.cc File Reference
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <stdio.h>
#include <errno.h>
#include <vector>
#include "config.h"

Packages

namespace  google
namespace  google::protobuf
namespace  google::protobuf::internal

Defines

#define DECLARE_STREAM_OPERATOR(TYPE, FORMAT)

Typedefs

typedef void google::protobuf::internal::OnShutdownFunc ()

Functions

void google::protobuf::internal::VerifyVersion (int headerVersion, int minLibraryVersion, const char *filename)
string google::protobuf::internal::VersionString (int version)
void google::protobuf::internal::DefaultLogHandler (LogLevel level, const char *filename, int line, const string &message)
void google::protobuf::internal::NullLogHandler (LogLevel level, const char *filename, int line, const string &message)
 google::protobuf::internal::GOOGLE_PROTOBUF_DECLARE_ONCE (log_silencer_count_init_)
void google::protobuf::internal::DeleteLogSilencerCount ()
void google::protobuf::internal::InitLogSilencerCount ()
void google::protobuf::internal::InitLogSilencerCountOnce ()
LogHandler * google::protobuf::SetLogHandler (LogHandler *new_func)
void google::protobuf::DoNothing ()
 google::protobuf::internal::GOOGLE_PROTOBUF_DECLARE_ONCE (shutdown_functions_init)
void google::protobuf::internal::InitShutdownFunctions ()
void google::protobuf::internal::InitShutdownFunctionsOnce ()
void google::protobuf::internal::OnShutdown (void(*func)())
void google::protobuf::ShutdownProtobufLibrary ()

Variables

vector< void(*)()> * google::protobuf::internal::shutdown_functions = NULL
Mutex * google::protobuf::internal::shutdown_functions_mutex = NULL

Define Documentation

#define DECLARE_STREAM_OPERATOR (   TYPE,
  FORMAT 
)
Value:
LogMessage& LogMessage::operator<<(TYPE value) {                  \
    /* 128 bytes should be big enough for any of the primitive */   \
    /* values which we print with this, but well use snprintf() */  \
    /* anyway to be extra safe. */                                  \
    char buffer[128];                                               \
    snprintf(buffer, sizeof(buffer), FORMAT, value);                \
    /* Guard against broken MSVC snprintf(). */                     \
    buffer[sizeof(buffer)-1] = '\0';                                \
    message_ += buffer;                                             \
    return *this;                                                   \
  }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines