Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

wrong binding for SetTraceLogCallback  #38

@xtofs

Description

@xtofs

SetTraceLogCallback is declared as

   [DllImport("raylib", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
    public unsafe static extern void SetTraceLogCallback(delegate* unmanaged[Cdecl]<int, sbyte*, sbyte*, void> callback);

but the callback in C is

void CustomLog(int msgType, const char *text, va_list args)

So the last argument of the callback should be va_list, not sbyte*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions