godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.74k stars 575 forks source link

Use `GDREGISTER` defines in example #1435

Closed Repiteo closed 7 months ago

Repiteo commented 7 months ago

Converts the direct use of class registration functions to their equivalent GDREGISTER defines.

dsnopek commented 7 months ago

Thanks!

I've wanted to make this change for so long. :-)

While you're in there, can you update the example in the README.md too?

dsnopek commented 7 months ago

Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1441

dsnopek commented 7 months ago

Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1442