mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Add @(link_suffix=<string>)
This commit is contained in:
+4
-1
@@ -112,6 +112,7 @@ enum InstrumentationFlag : i32 {
|
||||
struct AttributeContext {
|
||||
String link_name;
|
||||
String link_prefix;
|
||||
String link_suffix;
|
||||
String link_section;
|
||||
String linkage;
|
||||
isize init_expr_list_count;
|
||||
@@ -146,9 +147,10 @@ struct AttributeContext {
|
||||
String enable_target_feature; // will be enabled for the procedure only
|
||||
};
|
||||
|
||||
gb_internal gb_inline AttributeContext make_attribute_context(String link_prefix) {
|
||||
gb_internal gb_inline AttributeContext make_attribute_context(String link_prefix, String link_suffix) {
|
||||
AttributeContext ac = {};
|
||||
ac.link_prefix = link_prefix;
|
||||
ac.link_suffix = link_suffix;
|
||||
return ac;
|
||||
}
|
||||
|
||||
@@ -302,6 +304,7 @@ struct ForeignContext {
|
||||
Ast * curr_library;
|
||||
ProcCallingConvention default_cc;
|
||||
String link_prefix;
|
||||
String link_suffix;
|
||||
EntityVisiblityKind visibility_kind;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user