Registers the template array type
| 244 | |
| 245 | // Registers the template array type |
| 246 | void RegisterScriptArray(asIScriptEngine *engine, bool defaultArray) |
| 247 | { |
| 248 | if( strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY") == 0 ) |
| 249 | RegisterScriptArray_Native(engine); |
| 250 | else |
| 251 | RegisterScriptArray_Generic(engine); |
| 252 | |
| 253 | if( defaultArray ) |
| 254 | { |
| 255 | int r = engine->RegisterDefaultArrayType("array<T>"); assert( r >= 0 ); |
| 256 | UNUSED_VAR(r); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | static void RegisterScriptArray_Native(asIScriptEngine *engine) |
| 261 | { |
nothing calls this directly
no test coverage detected