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.
Nobody/Anonymous
semantic
None
Public
|
Date: 2012-06-13 23:54:46 PDT emacs 24.1 |
| Filename | Description | Download |
|---|---|---|
| minimal-example.h | Download | |
| minimal-example2.h | Download | |
| minimal.c | Download |