mirror of
https://github.com/labwc/labwc.git
synced 2026-02-10 04:27:47 -05:00
include/: refactor header files
This commit is contained in:
parent
82dc192217
commit
53266a0d5a
8 changed files with 27 additions and 14 deletions
13
include/common/bug-on.h
Normal file
13
include/common/bug-on.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef __LABWC_BUG_ON_H
|
||||
#define __LABWC_BUG_ON_H
|
||||
|
||||
#define BUG_ON(condition) \
|
||||
do { \
|
||||
if ((condition) != 0) { \
|
||||
fprintf(stderr, "Badness in %s() at %s:%d\n", \
|
||||
__func__, __FILE__, __LINE__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* __LABWC_BUT_ON_H */
|
||||
|
||||
|
|
@ -7,15 +7,7 @@
|
|||
#include <wayland-server-core.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
#include "buf.h"
|
||||
|
||||
#define BUG_ON(condition) \
|
||||
do { \
|
||||
if ((condition) != 0) { \
|
||||
fprintf(stderr, "Badness in %s() at %s:%d\n", \
|
||||
__func__, __FILE__, __LINE__); \
|
||||
} \
|
||||
} while (0)
|
||||
#include "common/buf.h"
|
||||
|
||||
struct keybind {
|
||||
uint32_t modifiers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue