Guide
macro expansions
- #name ===> quote as strings “xxx”
- ##name, name ===> xxx
- a ## b ===> concatenate the preceding and following tokens.
1 | // #name ===> "xxx" |
macro function
define
1 |
usage
1 | int c = SUM(1,2); |
with class object
define
1 | class profiler { |
usage
1 | void main() |
Reference
History
- 20191010: created.