msg << "Couldn't setup squirrel instance for object of type 'DisplayEffect'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, DisplayEffect_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'Camera'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, Camera_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'Level'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, Level_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'ScriptedObject'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, ScriptedObject_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'Sound'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, Sound_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'Text'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, Text_release_hook);
msg << "Couldn't setup squirrel instance for object of type 'Player'";
throw SquirrelError(v, msg.str());
}
+ sq_remove(v, -2);
if(setup_releasehook) {
sq_setreleasehook(v, -1, Player_release_hook);
<< "object of type '" << _class->name << "'\";\n"
<< ind << ind << "throw SquirrelError(v, msg.str());\n"
<< ind << "}\n"
+ << ind << "sq_remove(v, -2);\n"
<< "\n"
<< ind << "if(setup_releasehook) {\n"
<< ind << ind << "sq_setreleasehook(v, -1, "