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