mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 10:44:06 +00:00
Add @(raddbg_type_view=<optional-string>)
If no string parameter is provided, then one will be generated from the struct field tags. The attribute must be applied if the automatic struct field tag approach is to be used.
This commit is contained in:
@@ -602,6 +602,13 @@ gb_internal void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr,
|
||||
} else if (ac.objc_is_implementation) {
|
||||
error(e->token, "@(objc_implement) may only be applied when the @(objc_class) attribute is also applied");
|
||||
}
|
||||
|
||||
if (ac.raddbg_type_view) {
|
||||
RaddbgTypeView type_view = {};
|
||||
type_view.type = e->type;
|
||||
type_view.view = ac.raddbg_type_view_string;
|
||||
mpsc_enqueue(&ctx->info->raddbg_type_views_queue, type_view);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user