diff options
author | smatz <smatz@openttd.org> | 2010-03-23 22:48:10 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-03-23 22:48:10 +0000 |
commit | 4d67c5ddaf0d06e482ec3a547565279dd5cf4ad2 (patch) | |
tree | 17a684cd99aaef298ece83b2ead4cd36ea6fa535 /src/ai/api/ai_bridgelist.hpp.sq | |
parent | 23041d97200f226bf427de8db7e78232c4ad68b1 (diff) | |
download | openttd-4d67c5ddaf0d06e482ec3a547565279dd5cf4ad2.tar.xz |
(svn r19510) -Codechange: remove superfluous semicolons from *.sq files
Diffstat (limited to 'src/ai/api/ai_bridgelist.hpp.sq')
-rw-r--r-- | src/ai/api/ai_bridgelist.hpp.sq | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_bridgelist.hpp.sq b/src/ai/api/ai_bridgelist.hpp.sq index 2a1211b83..41408f8a4 100644 --- a/src/ai/api/ai_bridgelist.hpp.sq +++ b/src/ai/api/ai_bridgelist.hpp.sq @@ -18,7 +18,7 @@ namespace SQConvert { template <> const AIBridgeList *GetParam(ForceType<const AIBridgeList *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIBridgeList *)instance; } template <> const AIBridgeList &GetParam(ForceType<const AIBridgeList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIBridgeList *)instance; } template <> int Return<AIBridgeList *>(HSQUIRRELVM vm, AIBridgeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList", res, NULL, DefSQDestructorCallback<AIBridgeList>); return 1; } -}; // namespace SQConvert +} // namespace SQConvert void SQAIBridgeList_Register(Squirrel *engine) { @@ -36,7 +36,7 @@ namespace SQConvert { template <> const AIBridgeList_Length *GetParam(ForceType<const AIBridgeList_Length *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIBridgeList_Length *)instance; } template <> const AIBridgeList_Length &GetParam(ForceType<const AIBridgeList_Length &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIBridgeList_Length *)instance; } template <> int Return<AIBridgeList_Length *>(HSQUIRRELVM vm, AIBridgeList_Length *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList_Length", res, NULL, DefSQDestructorCallback<AIBridgeList_Length>); return 1; } -}; // namespace SQConvert +} // namespace SQConvert void SQAIBridgeList_Length_Register(Squirrel *engine) { |