[fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?
Christo Crause
christo.crause at gmail.com
Wed Nov 29 05:57:50 CET 2017
On 28 Nov 2017 9:04 PM, "Роман via fpc-pascal" <
fpc-pascal at lists.freepascal.org> wrote:
> Can I run SortAndInitialize before 'main' without additional user actions?
Maybe not exactly what you want but you could probably add the
SortAndInitialize procedure to the initialization section of a new unit and
add this unit as the last unit to your program.
This use case is probably a good candidate for using the "section" modifier
to specify initialization sequence. Unfortunately not available in the
compiler for code sections AFAIK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171129/8d5d5e89/attachment.html>
More information about the fpc-pascal
mailing list