-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add android install_version fix uwp compile add option --noxlsexport fix andorid firebase analytics default params
- Loading branch information
Showing
27 changed files
with
283 additions
and
320 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "AssertionStatistic.h" | ||
|
||
#if defined(MENGINE_ASSERTION_DEBUG_ENABLE) | ||
# include "Kernel/StatisticHelper.h" | ||
# include "Kernel/StatisticName.h" | ||
# include "Kernel/Assertion.h" | ||
# include "Kernel/Logger.h" | ||
|
||
# include "Config/StdIO.h" | ||
|
||
namespace Mengine | ||
{ | ||
namespace Detail | ||
{ | ||
void assertionStatisticEmpty( const Char * _category, uint32_t _id, const Char * _file, uint32_t _line ) | ||
{ | ||
int64_t value = STATISTIC_GET_INTEGER( _id ); | ||
|
||
if( value == 0 ) | ||
{ | ||
return; | ||
} | ||
|
||
Char msg[1024] = {'\0'}; | ||
MENGINE_SNPRINTF( msg, 1024, "[Assert] Statistics '%s' not empty ['%" MENGINE_PRLPARAM "']" | ||
, Helper::getStatisticName( _id ) | ||
, value | ||
); | ||
|
||
Mengine::Helper::Assertion( _category, ASSERTION_LEVEL_ERROR, msg, _file, _line, "Assertion Vocabulary Empty" ); | ||
} | ||
} | ||
} | ||
#endif |
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,20 @@ | ||
#pragma once | ||
|
||
#include "Config/Config.h" | ||
|
||
#if defined(MENGINE_ASSERTION_DEBUG_ENABLE) | ||
# include "Config/Char.h" | ||
# include "Config/Typedef.h" | ||
|
||
namespace Mengine | ||
{ | ||
namespace Detail | ||
{ | ||
void assertionStatisticEmpty( const Char * _category, uint32_t _id, const Char * _file, uint32_t _line ); | ||
} | ||
} | ||
|
||
# define MENGINE_ASSERTION_STATISTIC_EMPTY(ID) Detail::assertionStatisticEmpty(MENGINE_CODE_LIBRARY, ID, MENGINE_CODE_FILE, MENGINE_CODE_LINE) | ||
#else | ||
# define MENGINE_ASSERTION_STATISTIC_EMPTY(ID) | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include "StatisticName.h" | ||
|
||
#include "Kernel/Array.h" | ||
|
||
namespace Mengine | ||
{ | ||
namespace Helper | ||
{ | ||
////////////////////////////////////////////////////////////////////////// | ||
namespace Detail | ||
{ | ||
////////////////////////////////////////////////////////////////////////// | ||
template<size_t Index> | ||
constexpr const Char * createStatisticNameTableFunction() | ||
{ | ||
const Char * name = Statistic<Index>::getName(); | ||
|
||
return name; | ||
} | ||
////////////////////////////////////////////////////////////////////////// | ||
template<size_t ... Index> | ||
constexpr auto createStatisticNameTable( std::index_sequence<Index ...> ) | ||
{ | ||
return Array<const Char *, sizeof ... (Index)>{{Detail::createStatisticNameTableFunction<Index>() ...}}; | ||
} | ||
////////////////////////////////////////////////////////////////////////// | ||
template<size_t Size> | ||
constexpr auto createStatisticNameTable() | ||
{ | ||
return Detail::createStatisticNameTable( std::make_index_sequence<Size>{} ); | ||
} | ||
////////////////////////////////////////////////////////////////////////// | ||
} | ||
////////////////////////////////////////////////////////////////////////// | ||
const Char * getStatisticName( uint32_t _id ) | ||
{ | ||
const Char * name = Detail::createStatisticNameTable<MENGINE_STATISTIC_MAX_COUNT>()[_id]; | ||
|
||
return name; | ||
} | ||
////////////////////////////////////////////////////////////////////////// | ||
} | ||
} |
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,11 @@ | ||
#pragma once | ||
|
||
#include "Interface/StatisticInterface.h" | ||
|
||
namespace Mengine | ||
{ | ||
namespace Helper | ||
{ | ||
const Char * getStatisticName( uint32_t _id ); | ||
} | ||
} |
Oops, something went wrong.