Skip to content

Commit

Permalink
Use mehtod hints to implement function wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
GrieferAtWork committed Dec 8, 2024
1 parent fa48e22 commit 005db8f
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 652 deletions.
5 changes: 4 additions & 1 deletion include/deemon/method-hints.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ struct Dee_type_method_hint {
#define Dee_TYPE_METHOD_HINT_END { (enum Dee_tmh_id)0, 0, NULL }


/* Link a type method in as part of a type's `tp_methods' array. */
/* Link a type method in as part of a type's `tp_method_hints' array.
* Behavior is undefined/depends-on-the-method-in-question if a type
* defines a method as a hint reference, but fails to implement all
* method hints used by the hinted method attribute. */
#define Dee_TYPE_METHOD_HINTREF(attr_name) \
{ DeeMH_##attr_name##_name, \
(Dee_objmethod_t)&DeeMH_##attr_name, \
Expand Down
Loading

0 comments on commit 005db8f

Please sign in to comment.