.doc/ext/reflex/update_event.cpp in reflexion-0.1.7 vs .doc/ext/reflex/update_event.cpp in reflexion-0.1.8

- old
+ new

@@ -6,17 +6,15 @@ using namespace Rucy; -static Class cUpdateEvent; +RUCY_DEFINE_VALUE_FROM_TO(Reflex::UpdateEvent) -RUCY_DEFINE_VALUE_FROM_TO(Reflex::UpdateEvent, cUpdateEvent) - #define THIS to<Reflex::UpdateEvent*>(self) -#define CHECK RUCY_CHECK_OBJ(Reflex::UpdateEvent, cUpdateEvent, self) +#define CHECK RUCY_CHECK_OBJ(Reflex::UpdateEvent, self) static VALUE alloc(VALUE klass) { @@ -47,9 +45,11 @@ { CHECK; return value(THIS->dt); } + +static Class cUpdateEvent; void Init_update_event () { Module mReflex = rb_define_module("Reflex");