| 1 |
/* Generated by genstub. Do not edit. */ |
| 2 |
#include <gauche.h> |
| 3 |
SCM_CLASS_DECL(FooClass); |
| 4 |
#define SCM_FOO(obj) ((Foo*)obj) |
| 5 |
#define SCM_FOOP(obj) SCM_ISA(obj, (&FooClass)) |
| 6 |
SCM_DEFINE_BASE_CLASS(FooClass, Foo, NULL, NULL, NULL, NULL, SCM_CLASS_TOP_CPL); |
| 7 |
|
| 8 |
void Scm_Init_cclass_metaclass2(ScmModule *mod SCM_UNUSED){ |
| 9 |
|
| 10 |
{ ScmObj meta = Scm_GlobalVariableRef(mod,SCM_SYMBOL(SCM_INTERN("<class>")), 0); |
| 11 |
if (SCM_UNBOUNDP(meta)) Scm_Error("Uknown metaclass: <class>"); |
| 12 |
if (!SCM_CLASSP(meta)) Scm_Error("Metaclass is not a class: %S", meta); |
| 13 |
Scm_InitStaticClassWithMeta(&FooClass, "foo", SCM_MODULE(mod), SCM_CLASS(meta), SCM_FALSE, NULL, 0); |
| 14 |
} |
| 15 |
} |