![]() |
libghostty
|
Go to the source code of this file.
Macros | |
| #define | GHOSTTY_INIT_SIZED(type) |
Enumerations | |
| enum | GhosttyResult { GHOSTTY_SUCCESS = 0 , GHOSTTY_OUT_OF_MEMORY = -1 , GHOSTTY_INVALID_VALUE = -2 , GHOSTTY_OUT_OF_SPACE = -3 } |
Common types, macros, and utilities for libghostty-vt.
Definition in file types.h.
| #define GHOSTTY_INIT_SIZED | ( | type | ) |
Initialize a sized struct to zero and set its size field.
Sized structs use a size field as the first member for ABI compatibility. This macro zero-initializes the struct and sets the size field to sizeof(type), which allows the library to detect which version of the struct the caller was compiled against.
| type | The struct type to initialize |
Example:
| enum GhosttyResult |
Result codes for libghostty-vt operations.