Removed RCS-style IDs.
[ruby-esmart.git] / src / rb_esmart.h
index e359419e08166ec572b989fb48eac4eb0acbfe9d..1075d436bb4c2ec6db43aad80983d5ca2101f978 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: rb_esmart.h 36 2004-07-25 10:45:47Z tilman $
- *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
  * This library is free software; you can redistribute it and/or
 #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