Skip to content

Paged Allocator not exposed to GDExtension #1924

Open

Description

@EmreBugday99

Godot version

4.6

godot-cpp version

4.5

System information

MacBook M4 Max

Issue description

Paged Allocator that's part of the core templates isn't exposed to GDExtension.
/core/templates/paged_allocator.h

Steps to reproduce

With the 4.5 branch of Godot-CPP repository, try including templates/paged_allocator.hpp and compile your GDExtension

Minimal reproduction project

A GDExtension project simply trying to include the PagedAllocator should be more than enough to repro this issue.

Activity

  1. Naros commented on Mar 2, 2026

    @Naros
    Contributor

    You cannot include a godot engine header file in godot-cpp, that's not supported. The only files you should be including when creating a GDExtension are the headers that are part of the godot-cpp repository or that are auto-generated by the bindings script.

  2. Ivorforce commented on Mar 2, 2026

    @Ivorforce
    Member

    Sure, but we can make a PR to add paged_allocator.h to godot-cpp. All (I think) core templates are in scope to be added to godot-cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions