Definition
An ammer
library is a set of library definitions and library datatype definitions. Since Haxe organises code into modules and classes, both libraries and library datatypes are defined using Haxe classes. This section provides a guide-level explanation of the various parts of a library definition, with examples. Further detail can be found in later sections.
Libraries
The APIs of native libraries consist of a set of exported functions. An ammer
library definition should list these functions and adapt their signatures to Haxe types. Library definitions can also expose constants.
Read on: Library definition
Datatypes
In addition to functions, libraries often define their own datatypes which group together data in a meaningful way. In C, these correspond to pointers to struct
types, opaque pointers, enum
types, or union
types.
Read on: Library datatype definition