ext/geos_c_impl/factory.h in rgeo-2.1.1 vs ext/geos_c_impl/factory.h in rgeo-2.2.0

- old
+ new

@@ -8,11 +8,10 @@ #include <ruby.h> #include <geos_c.h> RGEO_BEGIN_C - /* Per-interpreter globals. Most of these are cached references to commonly used classes, modules, and symbols so we don't have to do a lot of constant lookups and calls to rb_intern. @@ -184,9 +183,14 @@ /* Returns 1 if the given ruby object is a GEOS Geometry implementation, or 0 if not. */ char rgeo_is_geos_object(VALUE obj); + +/* + Raises a rgeo error if the object is not a GEOS Geometry implementation. +*/ +void rgeo_check_geos_object(VALUE obj); /* Gets the underlying GEOS geometry for a given ruby object. Returns NULL if the given ruby object is not a GEOS geometry wrapper. */