package gccjit

  1. Overview
  2. Docs
val create : context -> ?loc:location -> string -> field list -> struct_

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

val 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.

val 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.

val to_string : struct_ -> string

Get a human-readable description of this object.

OCaml

Innovation. Community. Security.