OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #import "base/mac/scoped_block.h" | |
6 | |
Nico
2016/04/04 17:53:44
Is the idea that we'll have this file around in no
| |
7 namespace base { | |
8 namespace mac { | |
9 namespace internal { | |
10 | |
11 id ScopedBlockTraitsRetain(id block) { | |
12 return Block_copy(block); | |
13 } | |
14 void ScopedBlockTraitsRelease(id block) { | |
Mark Mentovai
2016/04/05 00:09:15
nit: Blank line between functions.
| |
15 Block_release(block); | |
16 } | |
17 | |
18 } // namespace internal | |
19 } // namespace mac | |
20 } // namespace base | |
OLD | NEW |