mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Add min and max macros.
This commit is contained in:
parent
eca50e32a6
commit
228a19abf4
1 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,12 @@
|
|||
/** Free memory and zero the pointer */
|
||||
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
|
||||
|
||||
/** Get the smaller value */
|
||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
/** Get the bigger value */
|
||||
#define MAX(a,b) ((a) < (b) ? (b) : (a))
|
||||
|
||||
/**
|
||||
* }@
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue