4 ms·
If it's not possible to write function-like-macros that actually behave like functions, then function-like-macros need to be not used.
by aidenn0 10y ago
If it's not possible to write function-like-macros that actually behave like functions, then function-like-macros need to be not used.
- mvkg 10y agoIt's a good recommended that you don't use them. https://www.securecoding.cert.org/confluence/display/c/PRE00-C.+Prefer+inline+or+static+functions+to+function-like+macros https://www.securecoding.cert.org/confluence/display/c/PRE00...
- mfukar 10y agoThis is a recommendation I've seen in most coding guidelines I've read.