FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FBPointers.h
1 #pragma once
2 #ifndef FBPointers_h__
3 #define FBPointers_h__
4 
5 /**********************************************************\
6 Original Author: Richard Bateman (taxilian)
7 
8 Created: Sept 24, 2009
9 License: Dual license model; choose one of two:
10  New BSD License
11  http://www.opensource.org/licenses/bsd-license.php
12  - or -
13  GNU Lesser General Public License, version 2.1
14  http://www.gnu.org/licenses/lgpl-2.1.html
15 
16 Copyright 2009 Richard Bateman, Firebreath development team
17 \**********************************************************/
18 #include <boost/shared_ptr.hpp>
19 #include <boost/weak_ptr.hpp>
20 #include <boost/make_shared.hpp>
21 
22 #define FB_FORWARD_PTR(x) class x; \
23  typedef boost::shared_ptr<x> x ## Ptr; \
24  typedef boost::weak_ptr<x> x ## WeakPtr; \
25  typedef boost::shared_ptr<const x> x ## ConstPtr;
26 
27 // get rid of "unused variable" warnings
28 #define FB_UNUSED_VARIABLE(x) ((void)(x))
29 
30 #endif // FBPointers_h__
31