-WrapperCreator::create_class_construct_function(Class* _class)
-{
- out << "static int " << _class->name << "_construct_wrapper(HSQUIRRELVM v)\n";
- out << "{\n";
- out << ind << _class->name << "* _this = new "
- << _class->name << "();\n";
- out << ind << "sq_setinstanceup(v, 1, _this);\n";
- out << ind << "sq_setreleasehook(v, 1, "
- << _class->name << "_release_wrapper);\n";
- out << "\n";
- out << ind << "return 0;\n";
- out << "}\n";
- out << "\n";
-}
-
-void
-WrapperCreator::create_class_destruct_function(Class* _class)