Minimal example for not working macro expansion
Brought to you by:
zappo
Consider the following three files:
minimal-example.h:
#ifndef MINIMAL_H
#define MINIMAL_H
#define HIDEIT _
#define HIDECAT1(x,y) x ## y ## x
#define HIDECAT(x,y) HIDECAT1(x,y)
#endif
minimal-example2.h:
#ifndef MINIMAL_2_H
#define MINIMAL_2_H
#define PUFFERHIDE(x) HIDECAT(HIDEIT,x)
struct test_struct {
int a;
int PUFFERHIDE(b);
};
typedef struct test_struct * test_p;
#endif
minimal.c:
#include "minimal-example.h"
#include "minimal-example2.h"
int main(int argc, char * argv[]) {
test_p pup;
pup->
}
If you press C-c , <SPC> after pup-> the member _b_ will not show up.
emacs 24.1
M-x list-packages tells me
semantic 2.0
cedet 1.0pre7