(svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code

This commit is contained in:
rubidium
2009-10-04 18:16:44 +00:00
parent 54806e7437
commit e7fb5f00e7
53 changed files with 176 additions and 89 deletions

View File

@@ -20,7 +20,8 @@ namespace SQConvert {
template <> int Return<AITileList *>(HSQUIRRELVM vm, AITileList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList", res, NULL, DefSQDestructorCallback<AITileList>); return 1; }
}; // namespace SQConvert
void SQAITileList_Register(Squirrel *engine) {
void SQAITileList_Register(Squirrel *engine)
{
DefSQClass <AITileList> SQAITileList("AITileList");
SQAITileList.PreRegister(engine, "AIAbstractList");
SQAITileList.AddConstructor<void (AITileList::*)(), 1>(engine, "x");
@@ -42,7 +43,8 @@ namespace SQConvert {
template <> int Return<AITileList_IndustryAccepting *>(HSQUIRRELVM vm, AITileList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AITileList_IndustryAccepting>); return 1; }
}; // namespace SQConvert
void SQAITileList_IndustryAccepting_Register(Squirrel *engine) {
void SQAITileList_IndustryAccepting_Register(Squirrel *engine)
{
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList");
SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
@@ -59,7 +61,8 @@ namespace SQConvert {
template <> int Return<AITileList_IndustryProducing *>(HSQUIRRELVM vm, AITileList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryProducing", res, NULL, DefSQDestructorCallback<AITileList_IndustryProducing>); return 1; }
}; // namespace SQConvert
void SQAITileList_IndustryProducing_Register(Squirrel *engine) {
void SQAITileList_IndustryProducing_Register(Squirrel *engine)
{
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
SQAITileList_IndustryProducing.PreRegister(engine, "AITileList");
SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
@@ -76,7 +79,8 @@ namespace SQConvert {
template <> int Return<AITileList_StationType *>(HSQUIRRELVM vm, AITileList_StationType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_StationType", res, NULL, DefSQDestructorCallback<AITileList_StationType>); return 1; }
}; // namespace SQConvert
void SQAITileList_StationType_Register(Squirrel *engine) {
void SQAITileList_StationType_Register(Squirrel *engine)
{
DefSQClass <AITileList_StationType> SQAITileList_StationType("AITileList_StationType");
SQAITileList_StationType.PreRegister(engine, "AITileList");
SQAITileList_StationType.AddConstructor<void (AITileList_StationType::*)(StationID station_id, AIStation::StationType station_type), 3>(engine, "xii");