Closed AThousandShips closed 3 months ago
My bad, missed this:
Just making this an improvement
Thanks!
This makes sense to me: we use the p_
prefix in all the hand-written code, so let's do it for all the generated code too.
The changes here look good in a quick skimming! This just needs a rebase after having merged PR https://github.com/godotengine/godot-cpp/pull/1485
Some of the cases like Array
has some non-prefixed cases, should I fix all the generated code with this? Like String
etc. as well?
Edit: Since these are actually generated with these arguments in the source with this change I'll fix it all
Some of the cases like
Array
has some non-prefixed cases, should I fix all the generated code with this? LikeString
etc. as well?
I think we ultimately want to change all cases, so if there aren't any roadblocks to doing it now, let's do it!
Realized a few binds include r_
so will make those not include the p_
, will push
Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1527
Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1529
Improves general readability of generated code and prevents potential collisions