Add alternative macro M_TEST_METHOD_ALTER_P

This commit is contained in:
Patrick Pelissier committed 2021-11-03 20:54:03 +01:00
1 parent bc7552f4a8
commit b2d3d86e0c
2 files changed
+9 -1

No files matched your search

+3
View File
@@ -6378,8 +6378,11 @@ Theses new operators will have higher priority than the ones
in the given oplist.
##### M\_TEST\_METHOD\_P(method, oplist)
##### M\_TEST\_METHOD\_ALTER\_P(method, oplist)
Test if a method is present in an oplist. Return 0 or 1.
M\_TEST\_METHOD\_P does not work if the returned method is something within parenthesis (like OPLIST*)
If this case is possible, you shall use the M_TEST_METHOD_ALTER_P macro (safer but slower).
##### M\_IF\_METHOD(method, oplist)