Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print_line is not available #1596

Open
aaronfranke opened this issue Sep 18, 2024 · 1 comment
Open

print_line is not available #1596

aaronfranke opened this issue Sep 18, 2024 · 1 comment
Labels
enhancement This is an enhancement on the current functionality

Comments

@aaronfranke
Copy link
Member

Godot version

Godot 4.3-stable

godot-cpp version

master b93d6e8

System information

macOS 14.6.1 arm64

Issue description

print_line("test");

This line compiles in engine code, but does not compile in godot-cpp:

error: use of undeclared identifier 'print_line'
   15 |         print_line("test");
      |         ^
1 error generated.

Steps to reproduce

Add print_line("test"); to a GDExtension godot-cpp project and try to compile it.

Minimal reproduction project

I'm not gonna bother including a minimal reproduction project since it's one line of code.

@dsnopek
Copy link
Collaborator

dsnopek commented Sep 18, 2024

Thanks!

This one should be fairly easy to fix. We've already got UtilityFunctions::print() - I think we could just add a hand-written print_line() function that calls it.

@dsnopek dsnopek added the enhancement This is an enhancement on the current functionality label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality
Projects
None yet
Development

No branches or pull requests

2 participants