mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 11:55:28 -04:00
a8559bfbbc
* 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
21 lines
481 B
C++
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
|