--------------------------------------------------------------------------- Code ---------------------------------------------------------------------------
| 73 | // Code |
| 74 | //--------------------------------------------------------------------------- |
| 75 | const XnChar* XnGetAllocTypeString(XnAllocationType nType) |
| 76 | { |
| 77 | switch (nType) |
| 78 | { |
| 79 | case XN_ALLOCATION_MALLOC: |
| 80 | return "xnOSMalloc"; |
| 81 | case XN_ALLOCATION_MALLOC_ALIGNED: |
| 82 | return "xnOSMallocAligned"; |
| 83 | case XN_ALLOCATION_CALLOC: |
| 84 | return "xnOSCalloc"; |
| 85 | case XN_ALLOCATION_CALLOC_ALIGNED: |
| 86 | return "xnOSCallocAligned"; |
| 87 | case XN_ALLOCATION_NEW: |
| 88 | return "XN_NEW"; |
| 89 | case XN_ALLOCATION_NEW_ARRAY: |
| 90 | return "XN_NEW_ARR"; |
| 91 | default: |
| 92 | return "Unknown"; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | XN_C_API void* xnOSLogMemAlloc(void* pMemBlock, XnAllocationType nAllocType, XnUInt32 nBytes, const XnChar* csFunction, const XnChar* csFile, XnUInt32 nLine, const XnChar* csAdditional) |
| 97 | { |
no outgoing calls
no test coverage detected