import("package.tools.cmake").install(package,configs) 3236 else 33- ifpackage:version():eq("v0.9.6")then 34- io.writefile("xmake.lua",[[ 35- target("magic_enum") 36- set_kind("moduleonly") 37- set_languages("c++20")
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code - magic_enum/meson.build at master · bshm/magic_enum
https://github.com/Neargye/magic_enum.git 或 https://github.com/Neargye/magic_enum.git magic_enum为header only的库无需编译 如果需要查看工程中的examples时,需要使用cmake进行编译,关于这部分的资料已经很多了,在此不再赘述。 使用示例 代码语言:javascript 代码运行次数:0 运行 AI代码解释 #include"magi...
以下のバイナリパッケージがこのソースパッケージからビルドされています。 libmagicenum-dev C++ library providing static reflection for enumsその他の magic-enum 関連パッケージ 構築依存 構築依存 (アーキテクチャ非依存) debhelper-compat (= 13) パッケージは利用できません cmake ...
libmagicenum-dev C++ library providing static reflection for enums其他与 magic-enum 有关的软件包 完整构建时刻依赖 单独构建时刻依赖 debhelper-compat (= 13) 软件包暂时不可用 cmake cross-platform, open-source make system Download magic-enum文件...
struct CMailFilter { CString m_sName; // filter text enum {nConditions = 2}; CFilterCnd m_aCnd[nConditions]; BYTE m_nCombination; // MFC_x CString m_sMailBox; COLORREF m_Color; // if color is used DWORD m_dwAction; // combination of MFA_* CMailFilter(); CMailFilter(con...
$mkdirbuild$cdbuild$cmake ..$make 运行python测试库文件 ### 在build目录下执行,即enum_ext.so存在的目录(可以将so移至其他目录,这样就可以在其他目录下打开python终端) $ python>>>importenum_ext>>>help(enum_ext)>>>enum_ext.color<class 'enum_ext.color'>>>int(enum_ext.color.red)1>>>int(en...
and enums directly into the documentation. # Thedefault value is: NO. INLINESOURCES = NO # Settingthe STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any # specialcomment blocks from generated source code fragments. NormalC, C++ and # Fortran...
[breaking changes] Need to use #include <magic_enum/magic_enum.hpp> instead of #include <magic_enum.hpp> Fix installing via CMake (#374) Fix install headers and pkg-config file via Meson (#383) Fix bitset constructor (#367) Fix parameterize formatter::format (#365) Fix enum_fuse shift...
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code - Neargye/magic_enum