Skip to content

Commit

Permalink
Merge pull request #9975 from Calinou/gdnative-cpp-fix-register-class…
Browse files Browse the repository at this point in the history
…-macro

Fix outdated reference to `register_class` function in GDExtension C++ example
  • Loading branch information
mhilbrunner authored Sep 19, 2024
2 parents a47a105 + 89508cd commit b64284d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ The ``initialize_example_module`` and ``uninitialize_example_module`` functions
called respectively when Godot loads our plugin and when it unloads it. All
we're doing here is parse through the functions in our bindings module to
initialize them, but you might have to set up more things depending on your
needs. We call the function ``register_class`` for each of our classes in our library.
needs. We call the ``GDREGISTER_CLASS`` macro for each of our classes in our library.

The important function is the third function called ``example_library_init``.
We first call a function in our bindings library that creates an initialization object.
Expand Down

0 comments on commit b64284d

Please sign in to comment.