X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fhookmacros.h;h=bd211e86fd71c0a90f332cc6acf5f973e9187f1e;hb=545c6af1daceb29e4a9dc419273a3f2339dfaa7c;hp=539d0d9d93fc241ca360df59cc9e4a9db6ee8033;hpb=a58d1a9017a1a15a237f5b516fe2c44a0f01482e;p=coloredstderr%2Fcoloredstderr.git diff --git a/src/hookmacros.h b/src/hookmacros.h index 539d0d9..bd211e8 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-2018 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) \