Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: content/browser/mac/closure_blocks_leopard_compat.h

Issue 8060022: Move Leopard compatible block code to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 5 #ifndef CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
6 #define CHROME_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 6 #define CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
7 #pragma once 7 #pragma once
8 8
9 // libclosure (blocks) compatibilty for Mac OS X 10.5 (Leopard) 9 // libclosure (blocks) compatibility for Mac OS X 10.5 (Leopard)
10 // 10 //
11 // Background material: 11 // Background material:
12 // http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks 12 // http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks
13 // http://opensource.apple.com/source/libclosure/libclosure-38/ 13 // http://opensource.apple.com/source/libclosure/libclosure-38/
14 // 14 //
15 // Leopard doesn't support blocks. Chrome supports Leopard. Chrome needs to use 15 // Leopard doesn't support blocks. Chrome supports Leopard. Chrome needs to use
16 // blocks. 16 // blocks.
17 // 17 //
18 // In any file where you use blocks (any time you type ^{...}), you must 18 // In any file where you use blocks (any time you type ^{...}), you must
19 // #include this file to ensure that the runtime symbols referenced by code 19 // #include this file to ensure that the runtime symbols referenced by code
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 #ifndef Block_copy 95 #ifndef Block_copy
96 #define Block_copy(...) \ 96 #define Block_copy(...) \
97 ((__typeof(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__))) 97 ((__typeof(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__)))
98 #endif 98 #endif
99 99
100 #ifndef Block_release 100 #ifndef Block_release
101 #define Block_release(...) _Block_release((const void *)(__VA_ARGS__)) 101 #define Block_release(...) _Block_release((const void *)(__VA_ARGS__))
102 #endif 102 #endif
103 103
104 #endif // CHROME_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_ 104 #endif // CONTENT_BROWSER_MAC_CLOSURE_BLOCKS_LEOPARD_COMPAT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698