1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements.  See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License.  You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MODPERL_DEBUG_H
18 #define MODPERL_DEBUG_H
19 
20 #include "mod_perl.h"
21 
22 #ifdef MP_DEBUG
23 #  define MP_ASSERT(exp) ap_assert(exp)
24 #else
25 #  define MP_ASSERT(exp) ((void)0)
26 #endif
27 
28 #ifdef USE_ITHREADS
29 #  define MP_ASSERT_CONTEXT(perl) MP_ASSERT((perl) == PERL_GET_CONTEXT)
30 #else
31 #  define MP_ASSERT_CONTEXT(perl) ((void)0)
32 #endif
33 
34 char *modperl_server_desc(server_rec *s, apr_pool_t *p);
35 
36 #ifdef MP_TRACE
37 void modperl_apr_table_dump(pTHX_ apr_table_t *table, char *name);
38 /* dump the contents of PL_modglobal */
39 void modperl_perl_modglobal_dump(pTHX);
40 #endif
41 
42 #endif /* MODPERL_DEBUG_H */
43 
44 /*
45  * Local Variables:
46  * c-basic-offset: 4
47  * indent-tabs-mode: nil
48  * End:
49  */
50