projects
/
ruby-esmart.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We now use real structs to wrap objects.
[ruby-esmart.git]
/
src
/
rb_esmart.h
diff --git
a/src/rb_esmart.h
b/src/rb_esmart.h
index a4bcb29324469dc63db8fa2019eaf403a4fdb0dd..a6e3b0ab7dcb0743a679d62efdc893a6e2032ff6 100644
(file)
--- a/
src/rb_esmart.h
+++ b/
src/rb_esmart.h
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_esmart.h
44 2004-07-26 10:56:48
Z tilman $
+ * $Id: rb_esmart.h
52 2004-08-01 10:19:14
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-24,14
+24,7
@@
#define GET_OBJ(obj, type, o) \
type *(o) = NULL; \
\
#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))) { \
#define CHECK_CLASS(val, klass) \
if (!rb_obj_is_kind_of ((val), (klass))) { \