debug.h

00001 /***************************************************************
00002  *
00003  * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
00004  * University of Wisconsin-Madison, WI.
00005  * 
00006  * Licensed under the Apache License, Version 2.0 (the "License"); you
00007  * may not use this file except in compliance with the License.  You may
00008  * obtain a copy of the License at
00009  * 
00010  *    http://www.apache.org/licenses/LICENSE-2.0
00011  * 
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  *
00018  ***************************************************************/
00019 
00020 
00021 #ifndef __CLASSAD_DEBUG_H__
00022 #define __CLASSAD_DEBUG_H__
00023 
00024 #include "classad/common.h"
00025 
00026 BEGIN_NAMESPACE( classad )
00027 
00028 #define CLASSAD_EXCEPT \
00029     _except_line_number = __LINE__, \
00030     _except_file_name   = __FILE__, \
00031     _classad_except
00032 
00033 extern int _except_line_number;
00034 extern const char *_except_file_name;
00035 void _classad_except(const char *format, ...);
00036 
00037 END_NAMESPACE
00038 
00039 #endif /* __CLASSAD_DEBUG_H__ */
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends