Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
core: use pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
shengofsun committed Oct 17, 2018
1 parent 29177bf commit 3b3b815
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/dsn/utility/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
// This source code is licensed under the Apache License Version 2.0, which
// can be found in the LICENSE file in the root directory of this source tree.

#ifndef MACROS_H
#define MACROS_H
#pragma once

#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName &) = delete; \
void operator=(const TypeName &) = delete

#endif // MACROS_H

0 comments on commit 3b3b815

Please sign in to comment.