Skip to content

Instantly share code, notes, and snippets.

@steve-s
Created July 21, 2022 13:20
Embed
What would you like to do?
typedef struct {
// ...
HPy (*ctx_Absolute)(HPyContext *ctx, HPy h1);
int (*ctx_IsTrue)(HPyContext *ctx, HPy h);
HPy (*ctx_Type_FromSpec)(HPyContext *ctx, HPyType_Spec *spec, HPyType_SpecParam *params);
// ...
} HPyContext;
// ...
HPyInit_kiwisolver(HPyContext *ctx) {
// ...
ctx->ctx_Type_FromSpec(ctx, &my_type_spec, ...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment