.doc/ext/rucy/struct.cpp in rucy-0.1.6 vs .doc/ext/rucy/struct.cpp in rucy-0.1.7

- old
+ new

@@ -1,6 +1,6 @@ -#include <rucy.h> +#include "rucy.h" using namespace Rucy; @@ -14,28 +14,10 @@ };// Struct static Class cStruct; - -namespace Rucy -{ - - - static Value - value (const Struct& obj) - { - return new_type(cStruct, new Struct(obj)); - } - - template <> inline Struct* - value_to<Struct*> (Value val, bool) - { - return get_type_ptr<Struct>(val, cStruct); - } - - -}// Rucy +RUCY_VALUE_FROM_TO(Struct, cStruct) /* alloc function. */