chenqiyang
2022-09-02 6a99d9bf65aa5878cb409945ed2bdbdcb916d047
HDLLinPhoneSDK(OC)/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/utils/general.h
old mode 100644 new mode 100755
@@ -79,7 +79,7 @@
// Debug.
// -----------------------------------------------------------------------------
void lAssert (const char *condition, const char *file, int line);
LINPHONE_PUBLIC void lAssert (const char *condition, const char *file, int line);
#ifdef DEBUG
   #define L_ASSERT(CONDITION) ((CONDITION) ? static_cast<void>(0) : LinphonePrivate::lAssert(#CONDITION, __FILE__, __LINE__))
@@ -242,6 +242,11 @@
         CLASS \
      >::type * \
   >(getPublic());
// -----------------------------------------------------------------------------
// Macro.
// -----------------------------------------------------------------------------
#define EPHEMERAL_MESSAGE_TASKS_MAX_NB 10
// -----------------------------------------------------------------------------
// Overload.
@@ -286,7 +291,8 @@
// Math.
// -----------------------------------------------------------------------------
// Get the length of one integer.
// Returns the number of digits of the absolute value of the input number
// If the number is negative, add one to the length to account for - sign
constexpr int getIntLength (int n) {
   return n < 0 ? 1 + getIntLength(-n) : (n < 10 ? 1 : 1 + getIntLength(n / 10));
}