C/macros

From Attie's Wiki
Revision as of 17:07, 14 February 2013 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
#include <stdio.h>
 
struct {
 int hello;
} test;
 
#define say(a) printf("..."#a"...%d\n",test.a)
 
int main(void) {
  test.hello = 102;
  say(hello);
}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox