Skip to content

Oh I catch issue with ClangSharpPInvokeGenerator #635

@DeafMan1983

Description

@DeafMan1983

Hey everyone,

I caught it issue if It happens like NULL as uncheckednull- That is wrong with Generatoir. Haha! Is it classical bug?

I explain you I have ported xcb into C#
Why does it happen If I use xcb_ewmh.h than it said uncheckednull

Example:

static inline xcb_void_cookie_t
xcb_ewmh_request_frame_extents(xcb_ewmh_connection_t *ewmh,
                               int screen_nbr,
                               xcb_window_t client_window)
{
  return xcb_ewmh_send_client_message(ewmh->connection, client_window,
                                      ewmh->screens[screen_nbr]->root,
                                      ewmh->_NET_REQUEST_FRAME_EXTENTS, 0, NULL);
}

Generated by Tool:

public static xcb_void_cookie_t xcb_ewmh_request_frame_extents(xcb_ewmh_connection_t* ewmh, int screen_nbr, xcb_window_t client_window)
{
    return xcb_ewmh_send_client_message(ewmh->connection, client_window, ewmh->screens[screen_nbr]->root, ewmh->_NET_REQUEST_FRAME_EXTENTS, 0, uncheckednull);
}

// EDIT:
It is very latest version 20.x of ClangSharpPInvokeGenerator

Is it correct or wrongly?

And happy October Day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions