MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / RegisterScriptArray

Function RegisterScriptArray

external/as_add_on/scriptarray/scriptarray.cpp:246–258  ·  view source on GitHub ↗

Registers the template array type

Source from the content-addressed store, hash-verified

244
245// Registers the template array type
246void 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
260static void RegisterScriptArray_Native(asIScriptEngine *engine)
261{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected