engine/source/scriptlib/ImportCache.c
/**
 * Frees all of the imported scripts. Called when shutting down the script
 * engine.
 */
Frees all of the imported scripts. Called when shutting down the script
engine.
Frees all of the imported scripts . Called when shutting down the script engine .
void ImportCache_Clear()
{
    List_Reset(&imports);
    while(List_GetSize(&imports))
    {
        ImportNode *node = (ImportNode *)List_Retrieve(&imports);
        ImportNode_Clear(node);
        free(node);
        List_Remove(&imports);
    }
    List_Clear(&imports);
}
void ImportCache_Clear ( ) { List_Reset ( & imports ) ; while ( List_GetSize ( & imports ) ) { ImportNode * node = ( ImportNode * ) List_Retrieve ( & imports ) ; ImportNode_Clear ( node ) ; free ( node ) ; List_Remove ( & imports ) ; } List_Clear ( & imports ) ; }
Frees all of the imported scripts.
Frees all of the imported scripts .