Hi everybody
I have a kind of situation

, There is some Handler methods and registration procedures,
In case of Library InternalRegisterHandler(...)
And for Program RegisterHandler(...)
So if after a while in maintenance of project one or more units moved between Host application(Program) or Module(Library) is there a way to determine code complies under a library or program?
Program HostApp;
begin
{$IFDEF PROGRAM}
Do somthing to change RegisterHandler method...
{$ENDIF}
end.
----------
Library FirstModule;
begin
{$IFDEF LIBRARY}
Do somthing to change RegisterHandler method...
{$ENDIF}
end.
Im looking for a way to just determine it, after I made my option to do the rest of things....