The ability to pass types as arguments basically,
Macro arguments can natively pass anything that doesn't have commas in it. Also typeof(value) GCC/Clang extension allows to capture the type passed.
Function arguments can have an enum argument e..g. (DOUBLE,FLOAT,INT,INT64) that can pass types as integer value representing the place in enumeration(the enumeration can hold values for specific struct/class/etc so essentially anything you define).
Edited on 03/09/2018 07:11.
>>13↵
The ability to pass types as arguments basically, ↵
Macro arguments can natively pass anything that doesn't have commas in it. Also typeof(type) GCC/Clang extension allows to capture the type passed.
The ability to pass types as arguments basically,
Function arguments can have an enum argument e..g. (DOUBLE,FLOAT,INT,INT64) that can pass types as integer value representing the place in enumeration(the enumeration can hold values for specific struct/class/etc so essentially anything you define).
Macro arguments can natively pass anything that doesn't have commas in it. Also typeof(value) GCC/Clang extension allows to capture the type passed.↵
↵
Function arguments can have an enum argument e..g. (DOUBLE,FLOAT,INT,INT64) that can pass types as integer value representing the place in enumeration(the enumeration can hold values for specific struct/class/etc so essentially anything you define).