// -*- c++ -*- #pragma once #ifndef __RAYS_EXT_DEFS_H__ #define __RAYS_EXT_DEFS_H__ #include using Rays::error; #define CHECK_OBJ(obj, type, klass) \ do \ { \ type* p = Rucy::get_type(obj, klass); \ if (!p) Rucy::invalid_object_error(); \ } \ while(0) #define CHECK_OBJECT(obj, type, klass) \ do \ { \ type* p = Rucy::get_type(obj, klass); \ if (!p || !*p) Rucy::invalid_object_error(); \ } \ while(0) #endif//EOH