]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/hookmacros.h
update copyright year
[coloredstderr/coloredstderr.git] / src / hookmacros.h
index 539d0d9d93fc241ca360df59cc9e4a9db6ee8033..4378e4ce2cb5060b920f98d8f818bddd9f819c91 100644 (file)
@@ -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
         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) \