Registers the template array type
| 270 | |
| 271 | // Registers the template array type |
| 272 | void RegisterScriptArray(asIScriptEngine *engine, bool defaultArray) |
| 273 | { |
| 274 | if( strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY") == 0 ) |
| 275 | RegisterScriptArray_Native(engine); |
| 276 | else |
| 277 | RegisterScriptArray_Generic(engine); |
| 278 | |
| 279 | if( defaultArray ) |
| 280 | { |
| 281 | int r = engine->RegisterDefaultArrayType("array<T>"); assert( r >= 0 ); |
| 282 | UNUSED_VAR(r); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | static void RegisterScriptArray_Native(asIScriptEngine *engine) |
| 287 | { |