Skip to content

Commit 63d77f6

Browse files
authored
Merge pull request godotengine#8009 from Chaosus/gdextension_fix
2 parents d980b87 + 7119fa1 commit 63d77f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tutorials/scripting/gdextension/gdextension_cpp_example.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,12 @@ At last, we need the header file for the ``register_types.cpp`` named
309309
#ifndef GDEXAMPLE_REGISTER_TYPES_H
310310
#define GDEXAMPLE_REGISTER_TYPES_H
311311

312-
void initialize_example_module();
313-
void uninitialize_example_module();
312+
#include <godot_cpp/core/class_db.hpp>
313+
314+
using namespace godot;
315+
316+
void initialize_example_module(ModuleInitializationLevel p_level);
317+
void uninitialize_example_module(ModuleInitializationLevel p_level);
314318

315319
#endif // GDEXAMPLE_REGISTER_TYPES_H
316320

0 commit comments

Comments
 (0)