-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmacros.h
23 lines (17 loc) · 821 Bytes
/
macros.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2018 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <iostream>
#define FLWAY_DISALLOW_COPY(TypeName) TypeName(const TypeName&) = delete;
#define FLWAY_DISALLOW_ASSIGN(TypeName) \
void operator=(const TypeName&) = delete;
#define FLWAY_DISALLOW_COPY_AND_ASSIGN(TypeName) \
FLWAY_DISALLOW_COPY(TypeName) \
FLWAY_DISALLOW_ASSIGN(TypeName)
#define __FLWAY_LINE_PREFIX << __FILE__ << ":" << __LINE__ << ": "
#define FLWAY_LOG std::cout << "LOG: " __FLWAY_LINE_PREFIX
#define FLWAY_ERROR std::cerr << "ERROR: " __FLWAY_LINE_PREFIX
#define FLWAY_WIP \
std::cerr << "Work In Progress. Aborting." << std::endl; \
abort();