; structure definition helper

macro struct name {
  macro name@struct \{ name name \}
  macro size@struct \{ sizeof.#name = $ \}
  struc name \{
}


ends fix } struct_helper


macro struct_helper {
  virtual at 0
    name@struct
    size@struct
  end virtual
  purge name@struc
  purge size@struct
}
