Fix MSVC error, co_return now a reserved word
authorCampbell Barton <ideasman42@gmail.com>
Mon, 27 Jun 2016 22:31:52 +0000 (08:31 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 27 Jun 2016 22:35:05 +0000 (08:35 +1000)
D2073 by @LazyDodo

source/blender/makesrna/intern/makesrna.c

index 8d3c6cb19cfc1e0c0ffcf47fd256ec3b414ec635..f9a46409aeaacbda805b6c1d2ff607b365751873 100644 (file)
@@ -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;
 }