projects
/
ruby-ecore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b319ec8
)
Raise errors in EventHandler#initialize rather than returning nil.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 12 Feb 2006 15:42:28 +0000
(15:42 +0000)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 12 Feb 2006 15:42:28 +0000
(15:42 +0000)
src/ecore/rb_event_handler.c
patch
|
blob
|
history
diff --git
a/src/ecore/rb_event_handler.c
b/src/ecore/rb_event_handler.c
index 81a5fdc808f2500b0ee261e7ac9351fea47626e2..12e2739b1740392de2d1a8c81f9a47e93caf7941 100644
(file)
--- a/
src/ecore/rb_event_handler.c
+++ b/
src/ecore/rb_event_handler.c
@@
-1,5
+1,5
@@
/*
- * $Id: rb_event_handler.c 35
7 2006-02-12 15:40:30
Z tilman $
+ * $Id: rb_event_handler.c 35
8 2006-02-12 15:42:28
Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
@@
-83,14
+83,14
@@
static VALUE c_init (VALUE self, VALUE type)
int t;
if (!rb_block_given_p ())
- r
eturn Qnil
;
+ r
b_raise (rb_eStandardError, "block missing")
;
Data_Get_Struct (self, RbEventHandler, h);
t = NUM2INT (type);
if (t <= ECORE_EVENT_NONE)
- r
eturn Qnil
;
+ r
b_raise (rb_eStandardError, "invalid type")
;
rb_iv_set (self, "@type", type);