MCPcopy Create free account
hub / github.com/cutdigital/mcut / mcSetUserEventStatus

Function mcSetUserEventStatus

source/mcut.cpp:315–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315MCAPI_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
342MCAPI_ATTR McResult MCAPI_CALL mcGetEventInfo(const McEvent event, McFlags info, McSize bytes, McVoid* pMem, McSize* pNumBytes)
343{

Callers 1

UTEST_FFunction · 0.85

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected