This commit is contained in:
bsongis
2015-06-18 19:10:05 +02:00
parent 81abf548a3
commit 98b23b348e
2 changed files with 15 additions and 6 deletions
+1
View File
@@ -732,6 +732,7 @@ PACK(typedef struct {
#define SWITCH_EXISTS(x) (SWITCH_CONFIG(x) != SWITCH_NONE)
#define IS_3POS(x) (SWITCH_CONFIG(x) == SWITCH_3POS)
#define IS_TOGGLE(x) (SWITCH_CONFIG(x) == SWITCH_TOGGLE)
#define IS_3POS_MIDDLE(x) ((x) == 1)
#define SWITCH_WARNING_ALLOWED(x) (SWITCH_EXISTS(x) && !IS_TOGGLE(x))
#endif