| 313 | } |
| 314 | |
| 315 | MCAPI_ATTR McResult MCAPI_CALL mcSetUserEventStatus( |
| 316 | McEvent event, |
| 317 | McInt32 execution_status) |
| 318 | { |
| 319 | McResult return_value = McResult::MC_NO_ERROR; |
| 320 | per_thread_api_log_str.clear(); |
| 321 | |
| 322 | if (event == nullptr) { |
| 323 | per_thread_api_log_str = "event ptr (param0) undef (NULL)"; |
| 324 | } else { |
| 325 | try { |
| 326 | set_user_event_status_impl(event, execution_status); |
| 327 | } |
| 328 | CATCH_POSSIBLE_EXCEPTIONS(per_thread_api_log_str); |
| 329 | } |
| 330 | |
| 331 | if (!per_thread_api_log_str.empty()) { |
| 332 | std::fprintf(stderr, "%s(...) -> %s\n", __FUNCTION__, per_thread_api_log_str.c_str()); |
| 333 | if (return_value == McResult::MC_NO_ERROR) // i.e. problem with basic local parameter checks |
| 334 | { |
| 335 | return_value = McResult::MC_INVALID_VALUE; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | return return_value; |
| 340 | } |
| 341 | |
| 342 | MCAPI_ATTR McResult MCAPI_CALL mcGetEventInfo(const McEvent event, McFlags info, McSize bytes, McVoid* pMem, McSize* pNumBytes) |
| 343 | { |
no test coverage detected