-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing files & fix boost_url linking
- Loading branch information
feiy
committed
Dec 21, 2023
1 parent
2f61810
commit 5e94d73
Showing
13 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="boost" version="1.84.0" targetFramework="native" /> | ||
<package id="boost_url-vc143" version="1.84.0" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="boost" version="1.84.0" targetFramework="native" /> | ||
<package id="boost_url-vc143" version="1.84.0" targetFramework="native" /> | ||
<package id="zeroc.openssl.v143" version="1.1.1.3" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#include <cstdio> | ||
#include "Logging.h" | ||
|
||
void* Logging::m_print_callback_data = nullptr; | ||
PrintCallback Logging::m_print_callback = nullptr; | ||
PrintCallback Logging::m_error_callback = nullptr; | ||
|
||
void Logging::SetPrintCallbacks(void* ptr, PrintCallback print_callback, PrintCallback error_callback) | ||
{ | ||
m_print_callback_data = ptr; | ||
m_print_callback = print_callback; | ||
m_error_callback = error_callback; | ||
} | ||
|
||
void Logging::print_std(const char* str) | ||
{ | ||
if (m_print_callback != nullptr) | ||
{ | ||
m_print_callback(m_print_callback_data, str); | ||
} | ||
else | ||
{ | ||
printf("%s\n", str); | ||
} | ||
} | ||
|
||
void Logging::print_err(const char* str) | ||
{ | ||
if (m_error_callback != nullptr) | ||
{ | ||
m_error_callback(m_print_callback_data, str); | ||
} | ||
else | ||
{ | ||
fprintf(stderr, "%s\n", str); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
typedef void (*PrintCallback)(void* ptr, const char* str); | ||
|
||
class Logging | ||
{ | ||
public: | ||
static void SetPrintCallbacks(void* ptr, PrintCallback print_callback, PrintCallback error_callback); | ||
static void print_std(const char* str); | ||
static void print_err(const char* str); | ||
|
||
private: | ||
static void* m_print_callback_data; | ||
static PrintCallback m_print_callback; | ||
static PrintCallback m_error_callback; | ||
|
||
|
||
}; |