Host code in C++