implemented platform macros