ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/callback.pl
(Generate patch)

Comparing gvpe/src/callback.pl (file contents):
Revision 1.5 by pcg, Tue Apr 26 00:55:55 2005 UTC vs.
Revision 1.7 by pcg, Tue Dec 27 16:36:16 2005 UTC

1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3print <<EOF; 3print <<EOF;
4// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it 4// THIS IS A GENERATED FILE: RUN callback.pl to regenerate it
5// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it 5// THIS IS A GENERATED FILE: callback.pl is part of the GVPE
6// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it 6// THIS IS A GENERATED FILE: distribution.
7// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it
8// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it
9// THIS IS A GENERATED FILE, RUN callback.pl to regenerate it
10 7
11/* 8/*
12 callback.h -- C++ callback mechanism 9 callback.h -- C++ callback mechanism
13 Copyright (C) 2003 Marc Lehmann <pcg\@goof.com> 10 Copyright (C) 2003-2005 Marc Lehmann <pcg\@goof.com>
14 11
15 This file is part of GVPE. 12 This file is part of GVPE.
16 13
17 GVPE is free software; you can redistribute it and/or modify 14 GVPE is free software; you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by 15 it under the terms of the GNU General Public License as published by
56 }; 53 };
57 template<class O1, class O2> 54 template<class O1, class O2>
58 struct proxy : proxy_base { 55 struct proxy : proxy_base {
59 virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) 56 virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG)
60 { 57 {
61 ((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)($TYPE)>(meth))) 58 return (R)((reinterpret_cast<O1 *>(obj)) ->* (reinterpret_cast<R (O2::*)($TYPE)>(meth)))
62 ($ARG); 59 ($ARG);
63 } 60 }
64 }; 61 };
65 62
66 proxy_base *prxy; 63 proxy_base *prxy;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines