![]() |
Delphi 2007 - Inline Funktion nicht expandiert?
Was bedeutet diese Compiler Message?
Die Funktion SmallPointToPoint liegt in der windows.pas, in der Types.pas gibt es die nicht
Code:
(ist kein Fehler oder sonstiges, aber mich würde es einfach interessieren, was das ist - inline function hört sich einfach sehr gut an - wie wenn das makro und co wäre ... ?)
[DCC Warnung] VirtualExplorerTree.pas(7220): H2443 Inline-Funktion 'SmallPointToPoint' wurde nicht expandiert, weil Unit 'Types' in der USES-Liste nicht angegeben ist
|
Re: Delphi 2007 - Inline Funktion nicht expandiert?
inlining bedeutet, dass kleine funktionen direkt vom compiler expandiert und in den assemblercode kopiert werden. damit sparst du einen aufruf und stackschieberei.
der delphi-compiler ist allerdings sehr wählerisch, was das inlinen angeht. ;-) |
Re: Delphi 2007 - Inline Funktion nicht expandiert?
und was hat das in dem fall dann mit der unit types und windows zu tun?
verstehe da den zusammenhang noch nicht so richtig ... |
Re: Delphi 2007 - Inline Funktion nicht expandiert?
Zitat:
|
Re: Delphi 2007 - Inline Funktion nicht expandiert?
Delphi kann in diesem Fall nur inlinen, wenn Du die Unit Types direkt bei uses angibst. Steht eigentlich ja schon da.
|
Re: Delphi 2007 - Inline Funktion nicht expandiert?
Zitat:
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz