mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 02:25:52 -04:00
23 lines
438 B
C++
23 lines
438 B
C++
/**
|
|
|
|
GDevelop - Function Extension
|
|
Copyright (c) 2008-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
#include "FunctionTools.h"
|
|
#include "GDCpp/Runtime/profile.h"
|
|
|
|
namespace GDpriv
|
|
{
|
|
namespace FunctionTools
|
|
{
|
|
|
|
gd::String GD_EXTENSION_API GetSafelyStringFromVector(std::vector<gd::String> & list, std::size_t index )
|
|
{
|
|
if (index < list.size()) return list[index];
|
|
return "";
|
|
}
|
|
|
|
}
|
|
}
|