diff --git a/IncSet.h b/IncSet.h index 10b3625c..a6c1974e 100644 --- a/IncSet.h +++ b/IncSet.h @@ -21,8 +21,6 @@ typedef enum { INC_FILTER = 1 } IncType; -#define IncSet_filter(inc_) (inc_->filtering ? inc_->modes[INC_FILTER].buffer : NULL) - typedef struct IncMode_ { char buffer[INCMODE_MAX+1]; int index; @@ -38,6 +36,10 @@ typedef struct IncSet_ { bool found; } IncSet; +static inline const char* IncSet_filter(const IncSet* this) { + return this->filtering ? this->modes[INC_FILTER].buffer : NULL; +} + typedef const char* (*IncMode_GetPanelValue)(Panel*, int); void IncSet_reset(IncSet* this, IncType type);