square([wallthick*2, ceilth]);
}
-module TestSealBoxBox(){
- BoxDoShapeRect(SealingBox_WallProfile(););
- hull(){ BoxDoShapeRect(SealingBox_FloorProfile();); }
-}
+// BoxDoShape(Basename,BoxDoShapeSomething)
+// generates modules BasenameBox and BasenameLid
+m4_define(`BoxUseShape',`
+ module $1Box(){
+ $2(SealingBox_WallProfile(););
+ hull(){ $2(SealingBox_FloorProfile();); }
+ }
-module TestSealBoxLid(){ ////toplevel
- BoxDoShapeRect(SealingBox_LidProfile(););
- hull(){ BoxDoShapeRect(SealingBox_CeilProfile();); }
-}
+ module $1Lid(){ ////toplevel
+ $2(SealingBox_LidProfile(););
+ hull(){ $2(SealingBox_CeilProfile();); }
+ }
+')
+
+BoxUseShape(`TestSealBox',`BoxDoShapeRect')