[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libjit] Recursive struct types
From: |
Aleksey Demakov |
Subject: |
Re: [Libjit] Recursive struct types |
Date: |
Sun, 8 Apr 2018 19:59:15 +0300 |
Hi,
On Sat, Apr 7, 2018 at 3:51 PM, Gil Barbosa <address@hidden> wrote:
>
> I want to know if there is a way to create struct types that contains fields
> that are pointer to other instances of itself, like linked lists.
> `jit_type_create_struct` expects the fields' types, so I don't know if I can
> create it beforehand and pass a pointer as a field.
>
The combination of jit_type_create_tagged() and
jit_type_set_tagged_type() calls should solve such a problem.
Regards,
Aleksey