From 78672521c49dfbdb0f39a63ef4886a88b5ef1b1d Mon Sep 17 00:00:00 2001 From: Christian Burger Date: Thu, 28 Apr 2022 12:48:38 +0200 Subject: [PATCH] corrected return values for `UNDEF` macros --- include/NCursesPtyWindow/Window.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/NCursesPtyWindow/Window.hpp b/include/NCursesPtyWindow/Window.hpp index 938c929..fb91c63 100644 --- a/include/NCursesPtyWindow/Window.hpp +++ b/include/NCursesPtyWindow/Window.hpp @@ -11,25 +11,25 @@ #include #ifdef addnwstr -inline void UNDEF(addnwstr)(const wchar_t *wstr, int n) { addnwstr(wstr, n); } +inline int UNDEF(addnwstr)(const wchar_t *wstr, int n) { addnwstr(wstr, n); } #undef addnwstr #define addnwstr UNDEF(addnwstr) #endif #ifdef add_wch -inline void UNDEF(add_wch)(const cchar_t *character) { add_wch(character); } +inline int UNDEF(add_wch)(const cchar_t *character) { add_wch(character); } #undef add_wch #define add_wch UNDEF(add_wch) #endif #ifdef ins_wch -inline void UNDEF(ins_wch)(cchar_t *character) { ins_wch(character); } +inline int UNDEF(ins_wch)(cchar_t *character) { ins_wch(character); } #undef ins_wch #define ins_wch UNDEF(ins_wch) #endif #ifdef get_wch -inline void UNDEF(get_wch)(wint_t *character) { get_wch(character); } +inline int UNDEF(get_wch)(wint_t *character) { get_wch(character); } #undef get_wch #define get_wch UNDEF(get_wch) #endif