package gccjit

  1. Overview
  2. Docs

Module Gccjit.StructSource

Sourceval create : context -> ?loc:location -> string -> field list -> struct_

Create a struct type, with the given name and fields.

Sourceval opaque : context -> ?loc:location -> string -> struct_

Construct a new struct type, with the given name, but without specifying the fields. The fields can be omitted (in which case the size of the struct is not known), or later specified using set_fields.

Sourceval set_fields : ?loc:location -> struct_ -> field list -> unit

Populate the fields of a formerly-opaque struct type.

This can only be called once on a given struct type.

Sourceval to_string : struct_ -> string

Get a human-readable description of this object.

OCaml

Innovation. Community. Security.