1 #include "shotgun/lib/shotgun.h"
2 #include "shotgun/lib/module.h"
4 OBJECT
metaclass_s_attach(STATE
, OBJECT obj
) {
6 meta
= metaclass_allocate(state
);
8 metaclass_set_attached_instance(meta
, obj
);
9 if(RTEST(state
->global
->hash
) || RTEST(state
->global
->methtbl
)) {
10 module_setup_fields(state
, meta
);
16 int metaclass_s_metaclass_p(STATE
, OBJECT obj
) {