Mir
Macros
event_printer.cpp File Reference
#include "mir/event_printer.h"
#include "mir/logging/input_timestamp.h"
Include dependency graph for event_printer.cpp:

Macros

#define PRINT_FLAG(base, name)
 
#define PRINT(base, name)   case base ## _ ## name: return out << #name;
 
#define PRINT_EVENT(type)   case mir_event_type_ ## type : return out << *mir_event_get_ ## type ## _event(&event);
 

Macro Definition Documentation

#define PRINT (   base,
  name 
)    case base ## _ ## name: return out << #name;
#define PRINT_EVENT (   type)    case mir_event_type_ ## type : return out << *mir_event_get_ ## type ## _event(&event);
#define PRINT_FLAG (   base,
  name 
)
Value:
if ((modifier & base ## _ ## name) == base ## _ ## name)\
{\
if (!none) out << ' ';\
out << # name;\
none= false;\
}

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015