| 500 | } |
| 501 | |
| 502 | static uint64_t runtime_current_process_id(void) { |
| 503 | #ifdef _WIN32 |
| 504 | return (uint64_t)GetCurrentProcessId(); |
| 505 | #elif defined(__APPLE__) || defined(__linux__) |
| 506 | return (uint64_t)getpid(); |
| 507 | #else |
| 508 | return 0; |
| 509 | #endif |
| 510 | } |
| 511 | |
| 512 | static void runtime_process_image_reference_init(runtime_process_image_reference_t *reference) { |
| 513 | if (!reference) { |
no outgoing calls
no test coverage detected