[fpc-devel] Using Macros for IInterface
    Marco van de Voort 
    marcov at stack.nl
       
    Wed Sep 26 12:28:23 CEST 2012
    
    
  
In our previous episode, Sven Barth said:
> >         end;
> >         IInterface = IUnknown;
> 
> This depends on whether we want to enable $macro in the system unit... 
It doesn't work at all since macro's don't export over unit borders.
> My suggestions (if we do indeed enable it):
> intfconst for constref/const
> intfdecl for stdcall/cdecl {I would not use extdecl so that there are no 
> potential conflicts}
libcall was already mentioned. It also helps in a lot of other places, and
kills ninetynine percent of macro use. (which IMHO is always a good thing)
    
    
More information about the fpc-devel
mailing list