mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-16 00:52:23 -07:00
printer for S_LABEL
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
// Copyright (c) 2024 Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
internal String8
|
||||
cv_string_from_unknown_value(Arena *arena, U32 x)
|
||||
{
|
||||
return push_str8f(arena, "%#x", x);
|
||||
}
|
||||
|
||||
internal String8
|
||||
cv_string_from_type_index_source(CV_TypeIndexSource ti_source)
|
||||
{
|
||||
@@ -307,6 +313,16 @@ cv_string_from_c13_checksum_kind(CV_C13ChecksumKind x)
|
||||
return str8_zero();
|
||||
}
|
||||
|
||||
internal String8
|
||||
cv_string_from_label_kind(Arena *arena, CV_LabelKind x)
|
||||
{
|
||||
switch (x) {
|
||||
case CV_LabelKind_Near: return str8_lit("Near");
|
||||
case CV_LabelKind_Far: return str8_lit("Far");
|
||||
}
|
||||
return cv_string_from_unknown_value(arena, x);
|
||||
}
|
||||
|
||||
internal String8
|
||||
cv_string_from_c13_subsection_kind(CV_C13SubSectionKind x)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user