Skip to content

Commit

Permalink
Update getting started section of README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcole committed May 17, 2023
1 parent 1c18413 commit 35ec42a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Follow [the example](test/demo/example.gdextension):
[configuration]

entry_symbol = "example_library_init"
compatibility_minimum = 4.1

[libraries]

Expand All @@ -99,8 +100,8 @@ extern "C" {

// Initialization.

GDExtensionBool GDE_EXPORT example_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization);
GDExtensionBool GDE_EXPORT example_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) {
godot::GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);

init_obj.register_initializer(initialize_example_module);
init_obj.register_terminator(uninitialize_example_module);
Expand Down

0 comments on commit 35ec42a

Please sign in to comment.