| 508 | } |
| 509 | |
| 510 | static uint64_t runtime_current_process_id(void) { |
| 511 | #ifdef _WIN32 |
| 512 | return (uint64_t)GetCurrentProcessId(); |
| 513 | #elif defined(__APPLE__) || defined(__linux__) |
| 514 | return (uint64_t)getpid(); |
| 515 | #else |
| 516 | return 0; |
| 517 | #endif |
| 518 | } |
| 519 | |
| 520 | static void runtime_process_image_reference_init(runtime_process_image_reference_t *reference) { |
| 521 | if (!reference) { |
no outgoing calls
no test coverage detected