Search Results
7/19/2025, 8:53:10 PM
>>715884531
I like to use them to make my own macro function calls to static functions that I make or other libraries provide, e.g. spdlog. it's so simple and useful once you know how to do it, and it can be very useful for a 1 liner. here's an example of logging.h for the part of the backend of my project https://pokestonks.xyz
the logging macros are at the bottom. you can then call them with 1 parameter, or many parameters e.g. LOG_INFO("AAAA") or LOG_INFO("{}", "AAAA")
I like to use them to make my own macro function calls to static functions that I make or other libraries provide, e.g. spdlog. it's so simple and useful once you know how to do it, and it can be very useful for a 1 liner. here's an example of logging.h for the part of the backend of my project https://pokestonks.xyz
the logging macros are at the bottom. you can then call them with 1 parameter, or many parameters e.g. LOG_INFO("AAAA") or LOG_INFO("{}", "AAAA")
Page 1