Files
GDevelop/Extensions/Function/FunctionTools.cpp
T
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00

21 lines
481 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 "";
}
} // namespace FunctionTools
} // namespace GDpriv