.doc/ext/rays/point.cpp in rays-0.1.7 vs .doc/ext/rays/point.cpp in rays-0.1.8
- old
+ new
@@ -8,17 +8,15 @@
using namespace Rucy;
using Rays::coord;
-static Class cPoint;
+RUCY_DEFINE_VALUE_FROM_TO(Rays::Point)
-RUCY_DEFINE_VALUE_FROM_TO(Rays::Point, cPoint)
-
#define THIS to<Rays::Point*>(self)
-#define CHECK RUCY_CHECK_OBJ(Rays::Point, cPoint, self)
+#define CHECK RUCY_CHECK_OBJ(Rays::Point, self)
static
VALUE alloc(VALUE klass)
{
@@ -208,9 +206,12 @@
VALUE inspect(VALUE self)
{
CHECK;
return value(Xot::stringf("#<Rays::Point %s>", THIS->inspect().c_str()));
}
+
+
+static Class cPoint;
void
Init_point ()
{
Module mRays = rb_define_module("Rays");