From 78871331d5573f76b7345e0e2aad24efcfa60700 Mon Sep 17 00:00:00 2001 From: rkebichi <54912798+rkebichi@users.noreply.github.com> Date: Thu, 5 Sep 2019 16:17:02 -0400 Subject: [PATCH] Update roctx.cpp --- src/roctx/roctx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roctx/roctx.cpp b/src/roctx/roctx.cpp index 78af443ffe..c113fde6b1 100644 --- a/src/roctx/roctx.cpp +++ b/src/roctx/roctx.cpp @@ -125,7 +125,7 @@ PUBLIC_API int roctxRangePushA(const char* message) { if (api_callback_fun) api_callback_fun(ACTIVITY_DOMAIN_ROCTX, ROCTX_API_ID_roctxRangePushA, &api_data, api_callback_arg); message_stack.push(strdup(message)); API_METHOD_CATCH(-1); - return 0; + return message_stack.size(); } PUBLIC_API int roctxRangePop() { @@ -141,7 +141,7 @@ PUBLIC_API int roctxRangePop() { message_stack.pop(); } API_METHOD_CATCH(-1) - return 0; + return message_stack.size(); } } // extern "C"