MCPcopy Create free account
hub / github.com/DFHack/dfhack / enum_item_key_str

Function enum_item_key_str

library/include/DataDefs.h:823–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821 */
822 template<class T>
823 inline const char *enum_item_key_str(T val) {
824 return ifnull(enum_item_raw_key(val), "?");
825 }
826
827 template<class BaseType>
828 std::string format_key(const char *keyname, BaseType val) {

Callers 1

getActivityLabelFunction · 0.85

Calls 2

ifnullFunction · 0.85
enum_item_raw_keyFunction · 0.85

Tested by

no test coverage detected