Skip to content

Conversation

hadashiA
Copy link
Contributor

@hadashiA hadashiA commented Jan 4, 2024

refs: #57

GroupingExtensionMethods removeUntilTypeName does not seem to work as per the README.

This is because it removes the TypeName of CamelCase, but ignores the type_name of snake_case.

I've fixed it to use snake_case.

Before:

public static void CounterContextInsert(this ref global::CsBindgen.CounterContext @context, int @value)
{
    NativeMethods.counter_context_insert((global::CsBindgen.CounterContext*)Unsafe.AsPointer(ref @context), @value);
}

After:

public static void Insert(this ref global::CsBindgen.CounterContext @context, int @value)
{
    NativeMethods.counter_context_insert((global::CsBindgen.CounterContext*)Unsafe.AsPointer(ref @context), @value);
}

@neuecc neuecc merged commit 415ade9 into main Jan 11, 2024
@neuecc neuecc deleted the hadashiA/fix-grouped-methods-prefix branch January 11, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants