diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-28 01:31:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-28 01:35:05 +0300 |
commit | 58062680511d3b180e03b6fbb71471c80573b9f3 (patch) | |
tree | 5b23f5a53de6cc8420f2f2c116a23268b7cc9986 /source | |
parent | f738f66f1be736aec31f3640d35168a2e24f39f8 (diff) |
Fix MSVC error, co_return now a reserved word
D2073 by @LazyDodo
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 8d3c6cb19cf..f9a46409aea 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -227,6 +227,10 @@ static const char *rna_safe_id(const char *id) return "operator_value"; else if (STREQ(id, "new")) return "create"; + else if (STREQ(id, "co_return")) { + /* MSVC2015, C++ uses for coroutines */ + return "coord_return"; + } return id; } |