Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
7-3-1 declarations and definitions
#1
Does rule 7-3-1 require a function declared at global scope be declared as "extern 'C'" for both the function's declaration and its definition or does one "extern 'C'" for that function suffice? For example, is this okay:
Code:
extern "C" void f();
void f() {}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)