[fpc-pascal] SIGSEGV when using varargs calling
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jan 26 09:49:56 CET 2016
leledumbo wrote:
>> > AFAIR it was supported until certain FPC version
>
> Found it:
> http://wiki.lazarus.freepascal.org/User_Changes_2.6.0#Array_of_const_parameters_and_cdecl_routines
As that entry notes, it was not supported: "There is however no way in
(Free) Pascal to access these arguments on the callee side". This
includes the case where you try to hack around this by declaring fake
parameters, such as what Silvio was doing.
The compiler didn't throw an error, but that's similar to how it didn't
throw an error in case of e.g.
http://wiki.freepascal.org/User_Changes_3.0#Classes_implementing_forward-declared_interfaces
Jonas
More information about the fpc-pascal
mailing list