feat: cache build results

debug:
void MONERO_DEBUG_test0();
bool MONERO_DEBUG_test1(bool x);
int MONERO_DEBUG_test2(int x);
uint64_t MONERO_DEBUG_test3(uint64_t x);
void* MONERO_DEBUG_test4(uint64_t x);
const char* MONERO_DEBUG_test5();
const char* MONERO_DEBUG_test5_std();
This commit is contained in:
Czarek Nakamoto
2023-12-30 13:47:07 +01:00
parent 7bd5002cc9
commit 48e6f06142
7 changed files with 161 additions and 58 deletions

View File

@@ -447,10 +447,44 @@ void MONERO_WalletManagerFactory_setLogLevel(int level) {
// DEBUG functions
// As it turns out we need a bit more functions to make sure that the library is working.
// 0) void
// 1) bool
// 2) int
// 3) uint64_t
// 4) void*
// 5) const char*
// the Answer to the Ultimate Question of Life, the Universe, and Everything.
int MONERO_DEBUG_theAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(int x) {
return x*42;
void MONERO_DEBUG_test0() {
return;
}
bool MONERO_DEBUG_test1(bool x) {
return x;
}
int MONERO_DEBUG_test2(int x) {
return x;
}
uint64_t MONERO_DEBUG_test3(uint64_t x) {
return x;
}
void* MONERO_DEBUG_test4(uint64_t x) {
int y = x;
return reinterpret_cast<void*>(&y);
}
const char* MONERO_DEBUG_test5() {
const char *text = "This is a const char* text";
return text;
}
const char* MONERO_DEBUG_test5_std() {
std::string text ("This is a std::string text");
const char *text2 = "This is a text";
return text2;
}
#ifdef __cplusplus

View File

@@ -727,7 +727,13 @@ void MONERO_WalletManagerFactory_setLogLevel(int level);
// };
// }
int MONERO_DEBUG_theAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(int x);
void MONERO_DEBUG_test0();
bool MONERO_DEBUG_test1(bool x);
int MONERO_DEBUG_test2(int x);
uint64_t MONERO_DEBUG_test3(uint64_t x);
void* MONERO_DEBUG_test4(uint64_t x);
const char* MONERO_DEBUG_test5();
const char* MONERO_DEBUG_test5_std();
#ifdef __cplusplus
}