c++ - Replace GetInstanceOfClass1()->GetInstanceOfClass2() with extern? -


what happen if "shorten" call:

getinstanceofclass1()->getinstanceofclass2(); 

(where instance of class2 member of class1) extern function declared in class1.cpp:

extern void getinstanceofclass2() {    getinstanceofclass1()->getinstanceofclass2(); } 

will compiler (clang) produce inefficient code? ugly, bad idea actually?


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -