[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exporting C functions from an extension module
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Fri, 22 Apr 2022 12:40:01 +0200
A struct of pointers sounds like a better idea than what I had been
trying! I will need to do some grunt work to define and initialize the
struct, but it has the advantage of needing less magic overall.
> One disadvantage may be that invoking these functions must always be
done
through a function pointer.
This might not be a disadvantage, actually. Dynamic linking is
implemented using function pointers, meaning that the other versions I
talked about also use function pointers under the hood.
-- Hugo