--- gvpe/src/callback.pl 2004/01/17 01:18:36 1.3 +++ gvpe/src/callback.pl 2005/12/27 16:36:16 1.7 @@ -1,18 +1,17 @@ #!/usr/bin/perl print < + Copyright (C) 2003-2005 Marc Lehmann - This program is free software; you can redistribute it and/or modify + This file is part of GVPE. + + GVPE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. @@ -23,8 +22,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + along with gvpe; if not, write to the Free Software + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef CALLBACK_H__ @@ -56,7 +55,7 @@ struct proxy : proxy_base { virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) { - ((reinterpret_cast(obj)) ->* (reinterpret_cast(meth))) + return (R)((reinterpret_cast(obj)) ->* (reinterpret_cast(meth))) ($ARG); } };