Fixes CInterface for BaseLibrary returning wrong value.

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-12-22 16:11:11 +01:00
parent 87bbae678a
commit 65cf7c52d9
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
export bool simpleName##_TryGet(fullname* p, const char* name, const returnType*& out) { \
ArbUt::BorrowedPtr<const returnType> o; \
auto v = p->TryGet(ArbUt::StringView::CalculateHash(name)); \
if (v.has_value()) { \
if (!v.has_value()) { \
out = nullptr; \
return false; \
} else { \
@ -30,7 +30,7 @@
export bool simpleName##_TryGetWithHash(fullname* p, uint32_t hashedKey, const returnType*& out) { \
ArbUt::BorrowedPtr<const returnType> o; \
auto v = p->TryGet(hashedKey); \
if (v.has_value()) { \
if (!v.has_value()) { \
out = nullptr; \
return false; \
} else { \