summaryrefslogtreecommitdiff
path: root/libbridge/src/main/cpp/wallet2_api_c.cpp
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-01-11 15:15:57 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-01-11 15:15:57 +0100
commit5fd5036ea39b4e5ea4b828d0804cf1a039df9a1a (patch)
tree20216323d9cc6321922e662b737b46fbfcf3ebdd /libbridge/src/main/cpp/wallet2_api_c.cpp
parent54fd59fb75fe72de2293cd60a9894446a937eb9b (diff)
add `MONERO_DEBUG_isPointerNull`
Diffstat (limited to 'libbridge/src/main/cpp/wallet2_api_c.cpp')
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.cpp5
1 files changed, 5 insertions, 0 deletions
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<Monero::Wallet*>(wallet_ptr);
+ return (wallet != NULL);
+}
+
#ifdef __cplusplus
}
#endif