Initial `genie` API implementation

This commit is contained in:
Phillip Stephens 2017-12-15 18:14:27 -08:00
parent 0760f299ab
commit 5983071127
2 changed files with 17 additions and 1 deletions

View File

@ -60,7 +60,8 @@ list(APPEND SPECTER_HEADERS
include/specter/FileBrowser.hpp
include/specter/Icon.hpp
include/specter/FontCache.hpp
include/specter/Translator.hpp)
include/specter/Translator.hpp
include/specter/genie.hpp)
atdna(atdna_FontCache.cpp include/specter/FontCache.hpp)

View File

@ -0,0 +1,15 @@
#ifndef __SPECTER_GENIE_HPP__
#define __SPECTER_GENIE_HPP__
#if __specter__
#define SPECTER_PROPERTY(n, d) \
[[using specter: name(n), description(d)]]
#define SPECTER_ENUM(n, d, et) \
[[using specter: name(n), description(d), enum_type(et)]]
#else
#define SPECTER_PROPERTY(n, d)
#define SPECTER_ENUM(n, d, et)
#endif
#endif //__SPECTER_GENIE_HPP__