Mercurial > emacs
view test/cedet/tests/testsppcomplete.c @ 105374:28c45fa22117
* w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Fri, 02 Oct 2009 06:00:58 +0000 |
parents | e480034314ce |
children | 7f4c7f5c0eba |
line wrap: on
line source
/* Example provided by Hannes Janetzek */ struct Test { int test; }; #define BLA(_type) \ _type *bla = (_type*) malloc(sizeof(_type)); #define BLUB(_type) \ (_type*)malloc(sizeof(_type)); #define FOO(_type) \ _type *foo = BLUB(_type); #define BAR(_type) \ _type *bar = (*_type)BLUB(_type); int main(int argc, char *argv[]) { BLA(Test); bla->// -1- ; // #1# ( "test" ) FOO(Test); foo->// -2- ; // #2# ( "test" ) BAR(Test); bar->// -3- ; // #3# ( "test" ) }