emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPS: Change some macros to functions


From: Gerd Möllmann
Subject: MPS: Change some macros to functions
Date: Thu, 11 Jul 2024 14:35:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Any objections against changing these to functions?

  #define IGC_HEADER_NWORDS(h) ((h)->v >> IGC_HEADER_NWORDS_SHIFT)
  #define IGC_HEADER_HASH(h) (((h)->v >> IGC_HEADER_HASH_SHIFT) & 
IGC_HEADER_HASH_MASK)
  #define IGC_HEADER_TYPE(h) (((h)->v >> IGC_HEADER_TYPE_SHIFT) & 
IGC_HEADER_TYPE_MASK)
  #define IGC_HEADER_TAG(h) ((h)->v & IGC_HEADER_TAG_MASK)

LLDB can't handle macros, and having return types would also be nice.

I can do that if you agree.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]