00001 /* -*- Mode: C++ -*- 00002 * $Id: library_compiler_directives.h,v 1.4 2001/09/03 19:38:03 frehe Exp $ 00003 * 00004 * 00005 * COPYRIGHT INFORMATION 00006 * 00007 * This file is part of RoboSoc created by Fredrik Heintz <frehe@ida.liu.se> 00008 * Copyright (C) 1999, 2000 Fredrik Heintz, Linköping University, Sweden 00009 * 00010 * You are allowed to modify and use this code as long as you retain this 00011 * notice. If you make any changes or have any comments I would appreciate 00012 * it if you send me a message. For more information, please see 00013 * http://www.ida.liu.se/~frehe/RoboCup/RoboSoc/ 00014 * 00015 * 00016 * IDENTIFICATION 00017 * 00018 * Filename: library_compiler_directives.h 00019 * Unitname: Library 00020 * $Revision: 1.4 $ 00021 * Created by: Fredrik Heintz 1999-xx-xx 00022 * Last modified by $Author: frehe $ $Date: 2001/09/03 19:38:03 $ 00023 * 00024 * 00025 * HISTORY 00026 * 00027 * $Log: library_compiler_directives.h,v $ 00028 * Revision 1.4 2001/09/03 19:38:03 frehe 00029 * Moved the RS_NAMESPACE macros back to machine_dependent_compiler_directives.h. 00030 * 00031 * Revision 1.3 2001/09/03 19:04:07 frehe 00032 * Moved RS_NAMESPACE macros from machine_dependet_compiler_directives.h and RS_USE_EXCEPTION to machine_dependent_compiler_directives.h 00033 * 00034 * Revision 1.2 2000/09/03 13:01:05 frehe 00035 * Added guards for eiffel-style design by contract checks RS_USE_INVARIANT, RS_USE_REQUIRE, and RS_USE_ENSURE. 00036 * 00037 * Revision 1.1.1.1 2000/08/31 13:26:03 frehe 00038 * Importet the current version of RoboSoc (soon to be v2.5.0) 00039 * 00040 */ 00041 00054 #ifndef LIBRARY_COMPILER_DIRECTIVES_H 00055 #define LIBRARY_COMPILER_DIRECTIVES_H 00056 00057 00058 #include "machine_dependent_compiler_directives.h" 00059 00060 00063 #define RS_TRIG_IN_DEG 00064 00066 #define RS_TRIG_IN_RAD 00067 00068 #ifndef RS_TRIG_IN_DEG 00069 # define RS_TRIG_IN_RAD 00070 #else 00071 # undef RS_TRIG_IN_RAD 00072 #endif 00073 00074 00075 //#define CHECK_DIVISION_BY_ZERO 1 00076 // The constants for DIVISION_BY_ZERO_RESULT is defined in types.h or 00077 // the definition of the type/class. 00078 00079 00087 #define RS_USE_ASSERT 00088 00092 #define RS_LOG_ASSERT 00093 00097 #define RS_THROW_ASSERT 00098 #ifdef RS_LOG_ASSERT 00099 # undef RS_THROW_ASSERT 00100 #endif 00101 00102 00107 #define RS_USE_INVARIANT 00108 00113 #define RS_USE_REQUIRE 00114 00119 #define RS_USE_ENSURE 00120 00121 00125 #define RS_LOG_EXCEPTION 00126 00127 00137 #define RS_USE_ERROR 00138 00142 #define RS_LOG_ERROR 00143 00144 00151 #define RS_USE_DEBUG 00152 00157 #define RS_LOG_DEBUG 00158 00159 00163 #define RS_USE_LOG 00164 00165 00166 #endif // !LIBRARY_COMPILER_DIRECTIVES_H
1.3-rc3