(svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code
This commit is contained in:
@@ -28,7 +28,8 @@ namespace SQConvert {
|
||||
template <> int Return<AIVehicle *>(HSQUIRRELVM vm, AIVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicle", res, NULL, DefSQDestructorCallback<AIVehicle>); return 1; }
|
||||
}; // namespace SQConvert
|
||||
|
||||
void SQAIVehicle_Register(Squirrel *engine) {
|
||||
void SQAIVehicle_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AIVehicle> SQAIVehicle("AIVehicle");
|
||||
SQAIVehicle.PreRegister(engine);
|
||||
SQAIVehicle.AddConstructor<void (AIVehicle::*)(), 1>(engine, "x");
|
||||
|
Reference in New Issue
Block a user