X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Fsrc%2Fsynfig%2Flayer.h;h=8a6a2e6c6de93463f865f9304c90e381a06eda92;hb=e44a07877e3a2e5f0e25db2fc2d67582e50ca327;hp=51bf6811df859e43e534a38f79f9d89c34c4a1f7;hpb=e6b894ac0b503008a3e42049aed30d116db28630;p=synfig.git diff --git a/synfig-core/src/synfig/layer.h b/synfig-core/src/synfig/layer.h index 51bf681..8a6a2e6 100644 --- a/synfig-core/src/synfig/layer.h +++ b/synfig-core/src/synfig/layer.h @@ -130,6 +130,19 @@ //! It prevents these layers showing up in the menu. #define CATEGORY_DO_NOT_USE "Do Not Use" +//! x=variable name, y=static bool value +#define SET_STATIC(x,y) \ + if(param==#x && x ## _static != y) \ + { \ + x ## _static = y; \ + return true; \ + } + +#define GET_STATIC(x) \ + if(param==#x) \ + return x ## _static; \ + + /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */