Although machicolations performed the same purpose as the wooden galleries, they were probably an Eastern invention rather than an evolution of the wooden form.
Yadiastun machicolations puniki madué kawigunan pateh sekadi sekat kayu,  ipun minab mawit saking Kangin katimbang panglimbak saking wangun-wangun kayu.