[codegen] extern "C" in DECLARE_ADDFUNCTIONS