interface
| 155 | |
| 156 | // interface |
| 157 | int asResetGlobalMemoryFunctions() |
| 158 | { |
| 159 | // Clean-up thread local memory before changing the allocation routines to avoid |
| 160 | // potential problem with trying to free memory using a different allocation |
| 161 | // routine than used when allocating it. |
| 162 | asThreadCleanup(); |
| 163 | |
| 164 | userAlloc = malloc; |
| 165 | userFree = free; |
| 166 | |
| 167 | return 0; |
| 168 | } |
| 169 | |
| 170 | // interface |
| 171 | void *asAllocMem(size_t size) |