| 952 | */ |
| 953 | template<class T> |
| 954 | inline bool get_flagarray_field(int *value, const BitArray<T> &bitfield, const std::string &name) |
| 955 | { |
| 956 | T tmp; |
| 957 | if (!find_enum_item(&tmp, name) || tmp < 0) return false; |
| 958 | *value = (bitfield->is_set(tmp) ? 1 : 0); |
| 959 | return true; |
| 960 | } |
| 961 | |
| 962 | DFHACK_EXPORT void flagarrayToString(std::vector<std::string> *pvec, const void *p, |
| 963 | int bytes, int base, int size, const char *const *items); |
nothing calls this directly
no test coverage detected