| 386 | |
| 387 | |
| 388 | int* cpu_allocHeapFlag() { |
| 389 | |
| 390 | // we use int over bool for the flag, because often we use |
| 391 | // value -1 as a third value |
| 392 | return (int*) malloc(sizeof(int)); // may be nullptr, caller will handle |
| 393 | } |
| 394 | |
| 395 | |
| 396 | void cpu_deallocHeapFlag(int* ptr) { |
no outgoing calls
no test coverage detected