|
From: | Gil Barbosa |
Subject: | Re: [Libjit] Recursive struct types |
Date: | Mon, 9 Apr 2018 00:33:42 -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
[Prev in Thread] | Current Thread | [Next in Thread] |