X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Frb_esmart.h;h=1075d436bb4c2ec6db43aad80983d5ca2101f978;hb=1969f6740e354d24f5a05436d0d3ffa63f9dbae9;hp=118847b05fa075b4a8e698b1395e896dcdeddf28;hpb=197f83468ba03c07a5f51888e67e164e257aa9a3;p=ruby-esmart.git diff --git a/src/rb_esmart.h b/src/rb_esmart.h index 118847b..1075d43 100644 --- a/src/rb_esmart.h +++ b/src/rb_esmart.h @@ -1,6 +1,4 @@ /* - * $Id$ - * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * * This library is free software; you can redistribute it and/or @@ -24,14 +22,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 +33,8 @@ return Qnil; \ } -VALUE mEsmart; +#ifndef __RB_ESMART_C +extern VALUE mEsmart; +#endif #endif