X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fhookmacros.h;h=3fff1badcc3fb71a3985622e005e20eb726558ff;hb=3e894f0f32aa021b5c9033c3c71539c3965aa6de;hp=539d0d9d93fc241ca360df59cc9e4a9db6ee8033;hpb=a58d1a9017a1a15a237f5b516fe2c44a0f01482e;p=coloredstderr%2Fcoloredstderr.git diff --git a/src/hookmacros.h b/src/hookmacros.h index 539d0d9..3fff1ba 100644 --- a/src/hookmacros.h +++ b/src/hookmacros.h @@ -1,7 +1,7 @@ /* * Macros to hook functions. * - * Copyright (C) 2013 Simon Ruderich + * Copyright (C) 2013-2014 Simon Ruderich * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -171,12 +171,6 @@ va_end(ap); \ } -#define HOOK_FD2(type, name, fd, type1, arg1, type2, arg2) \ - HOOK_FUNC_DEF2(type, name, type1, arg1, type2, arg2) { \ - _HOOK_PRE_FD(type, name, fd) \ - result = real_ ## name(arg1, arg2); \ - _HOOK_POST_FD(fd) \ - } #define HOOK_FD3(type, name, fd, type1, arg1, type2, arg2, type3, arg3) \ HOOK_FUNC_DEF3(type, name, type1, arg1, type2, arg2, type3, arg3) { \ _HOOK_PRE_FD(type, name, fd) \