diff options
| author | Tom Harley | 2019-10-28 22:25:54 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-10-28 22:25:54 +0000 |
| commit | 85093de7415e9410dc5917f8ef6ac489b8198b42 (patch) | |
| tree | e19ae85366e14f2e880e4c8f204090afb97a7fbb /common.c | |
| parent | Implement recursive definition support (diff) | |
| download | sinter-85093de7415e9410dc5917f8ef6ac489b8198b42.tar.gz sinter-85093de7415e9410dc5917f8ef6ac489b8198b42.zip | |
Add struct type definitions
Struct-like types can now be created using the type builtin. This creates a constructor function as well as a function for accessing each of the struct’s properties.
LLVM’s type checking makes using these structs a little awkward: they currently cannot be returned by any functions (except the constructor). The aim is to box everything, so that functions can return values they don’t know much about.
Diffstat (limited to 'common.c')
0 files changed, 0 insertions, 0 deletions
