mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-14 02:24:03 +01:00
d6f47eba76
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1916@1654 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CEF_MACROS_H_
|
|
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
|
|
#pragma once
|
|
|
|
#ifdef BUILDING_CEF_SHARED
|
|
#include "base/macros.h"
|
|
#else // !BUILDING_CEF_SHARED
|
|
|
|
// A macro to disallow the copy constructor and operator= functions
|
|
// This should be used in the private: declarations for a class
|
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
TypeName(const TypeName&); \
|
|
void operator=(const TypeName&)
|
|
|
|
#endif // !BUILDING_CEF_SHARED
|
|
|
|
#endif // CEF_LIBCEF_DLL_CEF_MACROS_H_
|
|
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CEF_MACROS_H_
|
|
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
|
|
#pragma once
|
|
|
|
#ifdef BUILDING_CEF_SHARED
|
|
#include "base/macros.h"
|
|
#else // !BUILDING_CEF_SHARED
|
|
|
|
// A macro to disallow the copy constructor and operator= functions
|
|
// This should be used in the private: declarations for a class
|
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
TypeName(const TypeName&); \
|
|
void operator=(const TypeName&)
|
|
|
|
#endif // !BUILDING_CEF_SHARED
|
|
|
|
#endif // CEF_LIBCEF_DLL_CEF_MACROS_H_
|