int function ( LuaState arg0 ) { int loc0 ; for ( loc0 = 0 ; loc0 < states . size ( ) ; loc0 ++ ) { LuaState loc1 = ( LuaState ) states . get ( loc0 ) ; if ( loc1 != null ) { if ( loc1 . getCPtrPeer ( ) == arg0 . getCPtrPeer ( ) ) return loc0 ; } } loc0 = getNextStateIndex ( ) ; states . set ( loc0 , arg0 ) ; return loc0 ; }
receives a existing luastate and checks if it exists in the states list . if it does n't exist adds it to the list . concode_field_sep List states concode_field_sep void removeLuaState concode_elem_sep LuaState newLuaState concode_elem_sep LuaState getExistingState concode_elem_sep int getNextStateIndex