MCPcopy
hub / github.com/SFTtech/openage / get_integrated_flags_list

Function get_integrated_flags_list

etc/gdb_pretty/printers.py:347–359  ·  view source on GitHub ↗

Get the list of flags as a string. :param value: The value to get the flags for. :type value: int

(value: int)

Source from the content-addressed store, hash-verified

345
346
347def get_integrated_flags_list(value: int) -> str:
348 """
349 Get the list of flags as a string.
350
351 :param value: The value to get the flags for.
352 :type value: int
353 """
354 flags = []
355 for mask, flag in INTEGRATED_FLAGS.items():
356 if value & mask:
357 flags.append(flag)
358
359 return ' | '.join(flags)
360
361
362@printer_typedef('openage::path::integrated_flags_t')

Callers 2

to_stringMethod · 0.85
to_stringMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected