| 1041 | } |
| 1042 | |
| 1043 | void Context::throw_out_of_memory ( bool isStringHeap, uint64_t size, const LineInfo * at ) { |
| 1044 | if ( isStringHeap ) { |
| 1045 | throw_error_at(at, "out of string heap memory, requested %llu bytes, used %llu / limit %llu", (unsigned long long) size, (unsigned long long) stringHeap->bytesAllocated(), (unsigned long long) stringHeap->getLimit()); |
| 1046 | } else { |
| 1047 | throw_error_at(at, "out of heap memory, requested %llu bytes, used %llu / limit %llu", (unsigned long long) size, (unsigned long long) heap->bytesAllocated(), (unsigned long long) heap->getLimit()); |
| 1048 | } |
| 1049 | } |
| 1050 | |
| 1051 | void Context::throw_error_ex ( DAS_FORMAT_STRING_PREFIX const char * message, ... ) { |
| 1052 | const int PRINT_BUFFER_SIZE = 8192; |
no test coverage detected