CCAFFEINE
0.8.8
|
00001 #ifndef object_h_seen 00002 #define object_h_seen 00003 00004 #ifndef ENDSEMI 00005 #ifdef __GNU_C__ 00006 #define ENDSEMI ; 00007 #else 00008 #define ENDSEMI 00009 #endif 00010 #endif 00011 00012 namespace jcpp { 00013 00014 #ifndef NULL 00015 00016 #define NULL 0 00017 #endif 00018 00019 #ifndef null 00020 00021 #define null 0 00022 #endif 00023 00024 #ifdef __GNUC__ 00025 #define boolean bool 00026 #endif 00027 00028 #ifndef boolean 00029 00030 #ifndef HAVE_BOOLEAN 00031 #define boolean bool 00032 #else 00033 #define boolean char 00034 #endif 00035 #endif 00036 00037 #ifndef TRUE 00038 #define TRUE 1 00039 #endif 00040 00041 #ifndef true 00042 #ifndef HAVE_BOOLEAN 00043 #define true 1 00044 #endif 00045 #endif 00046 00047 #ifndef false 00048 #ifndef HAVE_BOOLEAN 00049 #define false 0 00050 #endif 00051 #endif 00052 00053 #ifndef FALSE 00054 #define FALSE 0 00055 #endif 00056 00061 #define SYNCHRONIZED kill_me_now_synchronized 00062 00063 00064 00065 00078 class Object { 00079 public: 00080 virtual ~Object(){} 00081 }; 00082 00083 00085 class BadCastMessage { 00087 public: 00088 static void checkDynamicCast(void *p, char *fi, int line); 00089 static void checkDynamicCastMessage(void *p, char *fi, int line, char *mess); 00090 }; 00092 #define CHECKDC(p) jcpp::BadCastMessage::checkDynamicCast(p,(char *)__FILE__,__LINE__) 00093 00095 #define CHECKDCM(p,m) jcpp::BadCastMessage::checkDynamicCastMessage(p,__FILE__,__LINE__,m) 00096 00097 #ifndef CFREE 00098 00108 #define CFREE 00109 #define CDELETE 00110 #endif 00111 00112 00113 // #include "jc++/lang/ExceptionJC.h" 00114 // make throws clause go away, which is mainly because c++ exceptions 00115 // are an ugly mess though we still want to see javalike headers. 00116 #define throws(a) kill_me_now_throws 00117 00118 } ENDSEMI // jcpp 00119 #endif