| 61 | } |
| 62 | |
| 63 | CScriptArray* CScriptArray::Create(asITypeInfo *ti, asUINT length) |
| 64 | { |
| 65 | // Allocate the memory |
| 66 | void *mem = userAlloc(sizeof(CScriptArray)); |
| 67 | if( mem == 0 ) |
| 68 | { |
| 69 | asIScriptContext *ctx = asGetActiveContext(); |
| 70 | if( ctx ) |
| 71 | ctx->SetException("Out of memory"); |
| 72 | |
| 73 | return 0; |
| 74 | } |
| 75 | |
| 76 | // Initialize the object |
| 77 | CScriptArray *a = new(mem) CScriptArray(length, ti); |
| 78 | |
| 79 | return a; |
| 80 | } |
| 81 | |
| 82 | CScriptArray* CScriptArray::Create(asITypeInfo *ti, void *initList) |
| 83 | { |
nothing calls this directly
no outgoing calls
no test coverage detected