X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Frb_esmart.h;h=a6e3b0ab7dcb0743a679d62efdc893a6e2032ff6;hb=94cdd71fbad6175aba19192ebef7e54831f500ed;hp=e359419e08166ec572b989fb48eac4eb0acbfe9d;hpb=1256110e4e9d2d3f332f7f460224765132eeb0d5;p=ruby-esmart.git diff --git a/src/rb_esmart.h b/src/rb_esmart.h index e359419..a6e3b0a 100644 --- a/src/rb_esmart.h +++ b/src/rb_esmart.h @@ -1,5 +1,5 @@ /* - * $Id: rb_esmart.h 36 2004-07-25 10:45:47Z tilman $ + * $Id: rb_esmart.h 52 2004-08-01 10:19:14Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -24,14 +24,7 @@ #define GET_OBJ(obj, type, o) \ type *(o) = NULL; \ \ - Data_Get_Struct ((obj), type, (o)); \ -\ - if (!*(o)) { \ - rb_raise (rb_eException, \ - "%s destroyed already", \ - rb_obj_classname ((obj))); \ - return Qnil; \ - } + Data_Get_Struct ((obj), type, (o)); #define CHECK_CLASS(val, klass) \ if (!rb_obj_is_kind_of ((val), (klass))) { \ @@ -42,6 +35,8 @@ return Qnil; \ } -VALUE mEsmart; +#ifndef __RB_ESMART_C +extern VALUE mEsmart; +#endif #endif