__auto_type is a useful gnu extension, very useful for writing safe macros.


Its advantage over typeof:


1. instead of typeof(expr) _x = (expr), now __auto_type _x = (expr). `expr' now 
only appears once, avoid potension exponential expansion.


2. when writing __auto_type x = y; `x' is put in scope only after the 
semicolon, no danger of name collision.







 
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to