mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
add entity labels to macro map
This commit is contained in:
@@ -8671,6 +8671,10 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
|
|||||||
expr->mode = E_Mode_Offset;
|
expr->mode = E_Mode_Offset;
|
||||||
expr->type_key = entity_type;
|
expr->type_key = entity_type;
|
||||||
e_string2expr_map_insert(arena, ctx->macro_map, push_str8f(arena, "$%I64u", entity->id), expr);
|
e_string2expr_map_insert(arena, ctx->macro_map, push_str8f(arena, "$%I64u", entity->id), expr);
|
||||||
|
if(entity->name.size != 0)
|
||||||
|
{
|
||||||
|
e_string2expr_map_insert(arena, ctx->macro_map, entity->name, expr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scratch_end(scratch);
|
scratch_end(scratch);
|
||||||
|
|||||||
Reference in New Issue
Block a user