1 /** @file pch.h : include file for standard system include files,
2 * or project specific include files that are used frequently, but
3 * are changed infrequently
6 /* Copyright 2009 10gen Inc.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 // our #define macros must not be active when we include
25 // system headers and boost headers
26 #include "mongo/client/undef_macros.h"
28 #include "mongo/platform/basic.h"
47 #include <boost/shared_ptr.hpp>
48 #include <boost/smart_ptr.hpp>
49 #include <boost/function.hpp>
50 #include <boost/bind.hpp>
51 #include <boost/version.hpp>
53 #include "mongo/client/redef_macros.h"
55 #include "mongo/util/exit_code.h"
60 using boost::shared_ptr
;
62 void dbexit( ExitCode returnCode
, const char *whyMsg
= "" );
65 this is here so you can't just type exit() to quit the program
66 you should either use dbexit to shutdown cleanly, or ::exit to tell the system to quit
67 if you use this, you'll get a link error since mongo::exit isn't defined
69 void exit( ExitCode returnCode
);
75 #include "mongo/util/assert_util.h"
76 #include "mongo/util/debug_util.h"
77 #include "mongo/util/goodies.h"
78 #include "mongo/util/allocator.h"
79 #include "mongo/util/log.h"