From 5fd5036ea39b4e5ea4b828d0804cf1a039df9a1a Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Thu, 11 Jan 2024 15:15:57 +0100 Subject: add `MONERO_DEBUG_isPointerNull` --- libbridge/src/main/cpp/wallet2_api_c.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbridge/src/main/cpp/wallet2_api_c.cpp') diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp index 95931fc..82024c5 100644 --- a/libbridge/src/main/cpp/wallet2_api_c.cpp +++ b/libbridge/src/main/cpp/wallet2_api_c.cpp @@ -1597,6 +1597,11 @@ const char* MONERO_DEBUG_test5_std() { return text2; } +bool MONERO_DEBUG_isPointerNull(void* wallet_ptr) { + Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); + return (wallet != NULL); +} + #ifdef __cplusplus } #endif -- cgit v1.2.3