Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-07

Disabling wrapper functions, define DisableWrapperFunctions

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

Hello

Units FileUtil in LazUtils, FileProcs in Codetools and LCLProc in LCL have wrappers for functions in other units.
This is partly because many functions have been moved to LazUtils package over time.

I have put the wrappers inside an {$IFnDEF DisableWrapperFunctions}. In some future release they will be removed.

All component, package and application developers, please compile your code with define DisableWrapperFunctions.
I hope CCR code authors can do this, too.
Build Lazarus itself by setting the define in Configure Build Lazarus dialog. For applications use the "Additions and Overrides" and add a Custom Option -dDisableWrapperFunctions.

Fix uses sections as needed. Function names have not changed, only the units to use.
The sooner all code can be fixed the better.

Juha

Reply by email