neslib / Chet

C Header Translator for Delphi
BSD 2-Clause "Simplified" License
204 stars 43 forks source link

Add DelayLoading option for external procedure #5

Closed ccy closed 2 years ago

ccy commented 3 years ago

Delphi allow declare external function as delay loading. It would be nice to have an option to specify delayed in external procedure declaration.

Example:

function GetDesktopWindow: HWND; stdcall; external user32 name 'GetDesktopWindow' delayed;
function GetFooBar: Integer; stdcall; external kernel32 name 'GetFooBar' delayed;
function GetFooBarBar: Integer; stdcall; external 'kernel33' name 'GetFooBarBar' delayed;
neslib commented 2 years ago

Sorry for the long wait. Added the option now.