Skip to content

Is there any current documentation for "external c modules"? #17437

Closed Answered by Carglglz
poWer4aiX asked this question in Libraries & Drivers
Discussion options

You must be logged in to vote

Is there any good candidate to look into, to derive on how to use this new mechanism?

@poWer4aiX check

static MP_DEFINE_CONST_OBJ_TYPE(

static MP_DEFINE_CONST_OBJ_TYPE(
    socket_type,
    MP_QSTR_socket,
    MP_TYPE_FLAG_NONE,
    make_new, socket_make_new,
    protocol, &socket_stream_p,
    locals_dict, &socket_locals_dict,
    print, socket_print
    );

the new way is using this MP_DENIFE_CONST_OBJ_TYPE macro function 👍🏼

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@poWer4aiX
Comment options

@Carglglz
Comment options

Answer selected by poWer4aiX
@poWer4aiX
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants