From 19cb329ae686335b678c0e57611a24e87266d839 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 11 Apr 2023 00:05:41 +0200 Subject: [PATCH] Simplfy example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cc2b545..673370da 100644 --- a/README.md +++ b/README.md @@ -332,8 +332,8 @@ We can also write the same example shorter: #include #include "m-array.h" - // Register the oplist of a mpz_t. It is a classic oplist. - #define M_OPL_mpz_t() M_CLASSIC_OPLIST(mpz) + // Register the oplist of a mpz_t. + #define M_OPL_mpz_t() (INIT(mpz_init), INIT_SET(mpz_init_set), SET(mpz_set), CLEAR(mpz_clear)) // Define an instance of an array of mpz_t (both type and function) ARRAY_DEF(array_mpz, mpz_t) // Register the oplist of the created instance of array of mpz_t