On Mon Apr 3 08:23:29 2023 +0000, Mohamad Al-Jaf wrote:
The code you gave doesn't build, it results in a `Segmentation fault (core dumped)` error because the function `type_get_type` and subsequently the function it forwards to don't check if the parameter is NULL or not. I wasn't sure if modifying the helper function was the right way to go so I just added an if statement prior to checking the type.
Yeah it was just a suggestion, I didn't check it. You should use `$3 && type_get_type($3) != TYPE_RUNTIMECLASS` instead of two ifs.