Add initial prototype.
This commit is contained in:
18
3-mid/physics/interface/source/physics-shape.adb
Normal file
18
3-mid/physics/interface/source/physics-shape.adb
Normal file
@@ -0,0 +1,18 @@
|
||||
with
|
||||
ada.unchecked_Deallocation;
|
||||
|
||||
package body physics.Shape
|
||||
is
|
||||
|
||||
procedure free (Self : in out View)
|
||||
is
|
||||
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
|
||||
begin
|
||||
if Self /= null then
|
||||
Self.destruct;
|
||||
end if;
|
||||
|
||||
deallocate (Self);
|
||||
end free;
|
||||
|
||||
end physics.Shape;
|
||||
Reference in New Issue
Block a user