blob: 16193e8706bf0ff7d7f1a75af7b1621180a88963 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <godot_cpp/variant/string.hpp>
#include "openvic/Types.hpp"
#define ERR(x) ((x) == SUCCESS ? OK : FAILED)
namespace OpenVic {
inline char const* godot_to_c_string(godot::String const& str) {
return str.ascii().get_data();
}
inline std::string godot_to_std_string(godot::String const& str) {
return godot_to_c_string(str);
}
inline godot::String std_to_godot_string(std::string const& str) {
return str.c_str();
}
}
|