void run_hot(void) {
// I am called very often!
serve();
// <more code here>
}
void run_cold(void) {
// I am called only occasionally!
serve();
// <more code here>
}
???inline??? void serve(void) {
// I only want to be called inline from hot functions!
// <more code here>
}
有没有办法在函数B中显式内联函数A而在函数C中显式不内联相同的函数 A ?还是我完全受制于编译器?