mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 22:47:25 +00:00
update AMF3 logic and disable sanitizers on darwin
This commit is contained in:
parent
ac4fd02a6c
commit
8eb3488812
@ -5,8 +5,8 @@ project(Darkflame
|
|||||||
)
|
)
|
||||||
|
|
||||||
# TEMP - Sanitizer flags
|
# TEMP - Sanitizer flags
|
||||||
if (UNIX)
|
if (UNIX AND NOT APPLE)
|
||||||
# add_compile_options("-fsanitize=address,undefined" "-fvisibility=default")
|
# add_compile_options("-fsanitize=address,undefined" "-fvisibility=default")
|
||||||
add_compile_options("-fsanitize=undefined" "-fvisibility=default")
|
add_compile_options("-fsanitize=undefined" "-fvisibility=default")
|
||||||
add_link_options("-fsanitize=undefined")
|
add_link_options("-fsanitize=undefined")
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ AMFValue(const char*) -> AMFValue<std::string>; // AMFStringValue
|
|||||||
*/
|
*/
|
||||||
class AMFArrayValue : public AMFBaseValue {
|
class AMFArrayValue : public AMFBaseValue {
|
||||||
using AMFAssociative =
|
using AMFAssociative =
|
||||||
std::unordered_map<std::string, std::unique_ptr<AMFBaseValue>, GeneralUtils::transparent_string_hash, std::equal_to<>>;
|
std::unordered_map<std::string, std::unique_ptr<AMFBaseValue>, GeneralUtils::transparent_string_hash, std::equal_to<void>>;
|
||||||
|
|
||||||
using AMFDense = std::vector<std::unique_ptr<AMFBaseValue>>;
|
using AMFDense = std::vector<std::unique_ptr<AMFBaseValue>>;
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ namespace GeneralUtils {
|
|||||||
template <typename... Bases>
|
template <typename... Bases>
|
||||||
struct overload : Bases... {
|
struct overload : Bases... {
|
||||||
using is_transparent = void;
|
using is_transparent = void;
|
||||||
using Bases::operator() ... ;
|
using Bases::operator()...;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct char_pointer_hash {
|
struct char_pointer_hash {
|
||||||
|
Loading…
Reference in New Issue
Block a user