Hacker News
- Pre-defined C/C++ Compiler Macros https://github.com/cpredef/predef 8 comments
- Dtype_dispatch: a macro that defines macros that define enums and match them https://graphallthethings.com/posts/dtype-dispatch 3 comments
Lobsters
- Defining C macros the right way https://bowero.nl/blog/2020/10/25/defining-c-macros-the-right-way/ 12 comments c
- Stop defining feature-test macros in your code https://ariadne.space/2021/12/21/stop-defining-feature-test-macros-in-your-code/ 4 comments c , rant
- Problem with parameter expansion in macro-defining macro. https://gist.github.com/progfolio/1c96a67fcec7584b31507ef664de36cc 5 comments emacs
- I wrote an hygienic define-macro that can "capture" identifiers, I thought to share. http://pastebin.com/z7yu5tew 10 comments scheme
- C/C++ Pre-defined Compiler Macros http://predef.sourceforge.net/precomp.html 8 comments programming
- Custom user defined literals using proc_macro https://www.5snb.club/posts/2020/09/25/custom-literals-in-rust.html 11 comments rust
- Proof of concept: the "But I thought Rust doesn't have reflection?" memorial brand new way to define procedural macros https://github.com/dtolnay/reflect 19 comments rust
- SUGGESTION: Replace #DEFINE macros with constexpr https://www.reddit.com/r/arduino/comments/50v84v/suggestion_replace_define_macros_with_constexpr/ 8 comments arduino
- mod_macro : built into Apache HTTPD after 2.4.6, you can use a macro for your vhost defines! http://httpd.apache.org/docs/2.4/mod/mod_macro.html 4 comments linux
- Defining new control structures using C macros http://www.rfc1149.net/blog/2012/03/17/control-structures-with-c-macros/ 17 comments programming
- I made an macro + package for more easily defining org-agenda-category-icon-alist https://github.com/egregius313/org-agenda-category-icons 4 comments emacs
- How to check a feature flag for an item defined in a macro? https://stackoverflow.com/questions/63008781/check-a-feature-flag-in-an-item-defined-in-a-macro 4 comments rust
- Why is the C Programming Language's macro DECIMAL_DIG defined as ceil(1 + p_max*log_10(b))? Where does the "1 +" come from? http://pubs.opengroup.org/onlinepubs/009695399/basedefs/float.h.html 3 comments compsci
- I decided to dip my feet into proc macros, and bada bing, bada boom, introducing "compiletime"! Like the __TIME__ define in C but better. https://lib.rs/crates/compiletime 10 comments rust
- C/C++ #define - How to use long function macros? Are instances created in the heap? https://www.reddit.com/r/learnprogramming/comments/795wur/cc_define_how_to_use_long_function_macros_are/ 9 comments learnprogramming
- Is this at all worth it to debug this, or should I start over and actually write the code gradually and in stages? (Macro preprocessor like m4, GPP, defined in one file, sapp.y) https://gist.github.com/Chubek/3f1a2c13353b5484f307d97da1459e5e 8 comments c_programming
- [Cesar Luis Merlo / Garcia Grova] Talleres reached a verbal agreement with Nottingham Forest for the transfer of Ramón Sosa. A macro agreement has already been reached and an amount of around $15M USD (bonuses included) has been defined. The Paraguayan will sign a contract until June 2029. https://x.com/CLMerlo/status/1819092005521358864 4 comments soccer
- [RFC] substlet: Define form-local macros without quoting/unquoting forms, to better organize code without incurring function call overhead https://nullprogram.com/blog/2019/12/10/ 4 comments emacs