Hi!
> procedure OriginalProc(..).. {$IFDEF USEINLINE_ALIAS}inline;{$ENDIF}
> begin
> end;
> ...
>
> procedure AliasProc(...);
> begin
> {$DEFINE USEINLINE_ALIAS}
> OriginalProc(...);
> {$UNDEF USEINLINE_ALIAS}
> end;
Are you sure this works? AFAIK the "preprocessor" doesn't follow
function
On Sat, 6 Oct 2007 21:43:30 +0200
ik <[EMAIL PROTECTED]> wrote:
> On 10/6/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> > On Thu, 4 Oct 2007 20:17:36 +0200 (CEST)
> > Daniël Mantione <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
> > >
> > > > Ye
On 10/6/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> On Thu, 4 Oct 2007 20:17:36 +0200 (CEST)
> Daniël Mantione <[EMAIL PROTECTED]> wrote:
>
> >
> >
> > Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
> >
> > > Yes, but I hoped to declare it in situ - without adding another
> > > type. ;) The re
Op Sat, 6 Oct 2007, schreef Mattias Gaertner:
> On Thu, 4 Oct 2007 20:17:36 +0200 (CEST)
> Daniël Mantione <[EMAIL PROTECTED]> wrote:
>
> >
> >
> > Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
> >
> > > Yes, but I hoped to declare it in situ - without adding another
> > > type. ;) The reaso
On Thu, 4 Oct 2007 20:17:36 +0200 (CEST)
Daniël Mantione <[EMAIL PROTECTED]> wrote:
>
>
> Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
>
> > Yes, but I hoped to declare it in situ - without adding another
> > type. ;) The reason is that I'm auto translating some C headers
> > that contains ali
Op Thu, 4 Oct 2007, schreef Mattias Gaertner:
> Yes, but I hoped to declare it in situ - without adding another type. ;)
> The reason is that I'm auto translating some C headers that contains
> aliases for functions.
procedure DoAliasSomething(...params...); cdecl; external 'useful';
... is an
On Thu, 4 Oct 2007 19:58:08 +0200 (CEST)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
>
> On Thu, 4 Oct 2007, Mattias Gaertner wrote:
>
> > How can I create an alias for a function?
> > For example:
> >
> > procedure DoSomething(...params...); cdecl; external 'useful';
> >
> > const
> >
On Thu, 4 Oct 2007, Mattias Gaertner wrote:
> How can I create an alias for a function?
> For example:
>
> procedure DoSomething(...params...); cdecl; external 'useful';
>
> const
> DoAliasSomething = DoSomething;
>
> fpc does not allow this. So how can it be done?
program test;
procedure