C/macros

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m (Attie moved page C macros to C/macros)
 

Latest revision as of 17:07, 14 February 2013

#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