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

Side by Side Diff: native_client_sdk/src/libraries/sdk_util/macros.h

Issue 16325024: Move thread_pool.h into utils so it can be shared by more than one example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 LIBRARIES_UTILS_MACROS_H_ 5 #ifndef LIBRARIES_SDK_UTIL_MACROS_H_
6 #define LIBRARIES_UTILS_MACROS_H_ 6 #define LIBRARIES_SDK_UTIL_MACROS_H_
7 7
8 /** 8 /**
9 * A macro to disallow the evil copy constructor and operator= functions 9 * A macro to disallow the evil copy constructor and operator= functions
10 * This should be used in the private: declarations for a class. 10 * This should be used in the private: declarations for a class.
11 */ 11 */
12 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ 12 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
13 TypeName(const TypeName&); \ 13 TypeName(const TypeName&); \
14 void operator=(const TypeName&) 14 void operator=(const TypeName&)
15 15
16 /** returns the size of a member of a struct. */ 16 /** returns the size of a member of a struct. */
(...skipping 22 matching lines...) Expand all
39 * FORCE_LINK_THAT(myfilename) 39 * FORCE_LINK_THAT(myfilename)
40 * 40 *
41 */ 41 */
42 #define FORCE_LINK_THIS(x) int force_link_##x = 0; 42 #define FORCE_LINK_THIS(x) int force_link_##x = 0;
43 #define FORCE_LINK_THAT(x) \ 43 #define FORCE_LINK_THAT(x) \
44 void force_link_function_##x() { \ 44 void force_link_function_##x() { \
45 extern int force_link_##x; \ 45 extern int force_link_##x; \
46 force_link_##x = 1; \ 46 force_link_##x = 1; \
47 } 47 }
48 48
49 #endif /* LIBRARIES_UTILS_MACROS_H_ */ 49 #endif /* LIBRARIES_SDK_UTIL_MACROS_H_ */
50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698