old mode 100644
new mode 100755
| | |
| | | // 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__)) |
| | |
| | | CLASS \ |
| | | >::type * \ |
| | | >(getPublic()); |
| | | // ----------------------------------------------------------------------------- |
| | | // Macro. |
| | | // ----------------------------------------------------------------------------- |
| | | |
| | | #define EPHEMERAL_MESSAGE_TASKS_MAX_NB 10 |
| | | |
| | | // ----------------------------------------------------------------------------- |
| | | // Overload. |
| | |
| | | // 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)); |
| | | } |