add pointer reading within struct

This commit is contained in:
dzaima 2024-02-05 21:24:05 +02:00
parent a8772dc3ae
commit 3c297ffeb8

View File

@ -863,6 +863,8 @@ static B readAny(B o, u8* ptr) { // doesn't consume
return readRe(t, ptr);
} else if (t->ty==cty_struct || t->ty==cty_starr) { // {...}, [n]...
return readStruct(c(BQNFFIType, o), ptr);
} else if (t->ty==cty_ptr) { // *...
return m_ptrobj_s(*(void**)ptr, m_c32(sty_void));
}
}