Tuesday, April 5, 2011

static inline vs. extern inline

  • “static inline” means “we have to have this function, if you use it but don’t inline it, then make a static version of it in this compilation unit”
  • “extern inline” means “I actually have an extern for this function, but if you want to inline it, here’s the inline-version”