Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
0x53A committed Jan 27, 2025
1 parent cd69ea8 commit 0965b33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions godot-macros/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ pub fn make_function_registered_name_constants(
funcs
.iter()
.map(|func| {
// the constant needs the same #[cfg] attribute(s) as the function, so that it is only active if the function is also active.
// The constant needs the same #[cfg] attribute(s) as the function, so that it is only active if the function is also active.
let cfg_attributes = extract_cfg_attrs(&func.external_attributes)
.into_iter()
.collect::<Vec<_>>();
Expand All @@ -344,8 +344,6 @@ pub fn make_function_registered_name_constants(

/// Funcs can be renamed with `#[func(rename=new_name) fn f();`.
/// To be able to access the renamed function name at a later point, it is saved in a string constant.
/// This would create the following code for `f`:
/// ``pub const __gdext_func_{class_name}_f: &str = "new_name";``
pub fn make_function_registered_name_constant(
class_name: &Ident,
func_name: &Ident,
Expand Down

0 comments on commit 0965b33

Please sign in to comment.