src/Api/Orbit.cpp
__attribute__((ms_abi)) void orbit_api_start_wine_v1(const char* name, orbit_api_color color,
                                                     uint64_t group_id, uint64_t caller_address) {
  if (caller_address == kOrbitCallerAddressAuto) {
    caller_address = ORBIT_GET_CALLER_PC();
  }
  orbit_api_start_v1(name, color, group_id, caller_address);
}
// The functions that follow, with `__attribute__((ms_abi))`, are used to fill the function table
// `g_orbit_api` when the target was built for Windows and is running on Wine. They simply forward
// to the Linux versions, and the compiler takes care of converting between calling conventions.
The functions that follow, with `__attribute__((ms_abi))`, are used to fill the function table
`g_orbit_api` when the target was built for Windows and is running on Wine. They simply forward
to the Linux versions, and the compiler takes care of converting between calling conventions.
The functions that follow with ` __attribute__ (( ms_abi )) ` are used to fill the function table ` g_orbit_api ` when the target was built for Windows and is running on Wine . They simply forward to the Linux versions and the compiler takes care of converting between calling conventions .
__attribute__((ms_abi)) void orbit_api_start_wine_v1(const char* name, orbit_api_color color,
                                                     uint64_t group_id, uint64_t caller_address) {
  if (caller_address == kOrbitCallerAddressAuto) {
    caller_address = ORBIT_GET_CALLER_PC();
  }
  orbit_api_start_v1(name, color, group_id, caller_address);
}
__attribute__ ( ( ms_abi ) ) void orbit_api_start_wine_v1 ( const char * name , orbit_api_color color , uint64_t group_id , uint64_t caller_address ) { if ( caller_address == kOrbitCallerAddressAuto ) { caller_address = ORBIT_GET_CALLER_PC ( ) ; } orbit_api_start_v1 ( name , color , group_id , caller_address ) ; }
The functions that follow, with `__attribute__((ms_abi))`, are used to fill the function table
`g_orbit_api` when the target was built for Windows and is running on Wine.
The functions that follow with ` __attribute__ (( ms_abi )) ` are used to fill the function table ` g_orbit_api ` when the target was built for Windows and is running on Wine .