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
28 lines
610 B
C++
28 lines
610 B
C++
/**
|
|
|
|
GDevelop - Function Extension
|
|
Copyright (c) 2008-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef FUNCTIONTOOLS_H
|
|
#define FUNCTIONTOOLS_H
|
|
#include <string>
|
|
#include <vector>
|
|
#include "GDCpp/Runtime/String.h"
|
|
|
|
namespace GDpriv {
|
|
namespace FunctionTools {
|
|
|
|
/**
|
|
* \brief Return list[index] unless index is out of range.
|
|
* \return list[index] or empty string.
|
|
*/
|
|
gd::String GD_EXTENSION_API
|
|
GetSafelyStringFromVector(std::vector<gd::String>& list, std::size_t index);
|
|
|
|
} // namespace FunctionTools
|
|
} // namespace GDpriv
|
|
|
|
#endif // FUNCTIONTOOLS_H
|