(dest)->name.notify = handle_##name; \
wl_signal_add(&(src)->events.name, &(dest)->name)
+/**
+ * MIN() - Minimum of two values.
+ *
+ * @note Arguments may be evaluated twice.
+ */
+#ifndef MIN
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+
+/**
+ * MAX() - Maximum of two values.
+ *
+ * @note Arguments may be evaluated twice.
+ */
+#ifndef MAX
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+#endif
+
#endif /* LABWC_MACROS_H */
#define XCURSOR_DEFAULT "left_ptr"
#define XCURSOR_SIZE 24
-#ifndef MIN
-#define MIN(a, b) (((a) < (b)) ? (a) : (b))
-#endif
-
-#ifndef MAX
-#define MAX(a, b) (((a) > (b)) ? (a) : (b))
-#endif
-
enum input_mode {
LAB_INPUT_STATE_PASSTHROUGH = 0,
LAB_INPUT_STATE_MOVE,
#include <wlr/util/log.h>
#include "action.h"
#include "common/list.h"
+#include "common/macros.h"
#include "common/mem.h"
#include "common/nodename.h"
#include "common/parse-bool.h"
#include <wlr/types/wlr_scene.h>
#include <wlr/util/box.h>
#include <wlr/util/log.h>
+#include "common/macros.h"
#include "common/scaled_font_buffer.h"
#include "labwc.h"
#include "resize_indicator.h"
#include <assert.h>
#include <stdio.h>
#include <strings.h>
+#include "common/macros.h"
#include "common/match.h"
#include "common/mem.h"
#include "common/scene-helpers.h"