Skip to content

Instantly share code, notes, and snippets.

@steve-s
Created July 21, 2022 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steve-s/dc42d59ac9409c871493858bc88ae5f2 to your computer and use it in GitHub Desktop.
Save steve-s/dc42d59ac9409c871493858bc88ae5f2 to your computer and use it in GitHub Desktop.
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