convert the rest of the simple readers in cmop to xs
[gitmo/Class-MOP.git] / xs / HasAttributes.xs
diff --git a/xs/HasAttributes.xs b/xs/HasAttributes.xs
new file mode 100644 (file)
index 0000000..dc59227
--- /dev/null
@@ -0,0 +1,9 @@
+#include "mop.h"
+
+MODULE = Class::MOP::Mixin::HasAttributes   PACKAGE = Class::MOP::Mixin::HasAttributes
+
+PROTOTYPES: DISABLE
+
+BOOT:
+    INSTALL_SIMPLE_READER(Mixin::HasAttributes, attribute_metaclass);
+    INSTALL_SIMPLE_READER_WITH_KEY(Mixin::HasAttributes, _attribute_map, attributes);