Where is specified the script where GDVIRTUAL_CALL leads ?

Godot Version

4.7dev

Question

Hey, newbie here,

I was searching for the origin of a bug, and it led me to a c++ file, where there are calls to the function : GDVIRTUAL_CALL.

I searched, and here is what I understood : basically, it links a C++ function to a GDScript function.

But I have two questions :

  • First, is my understanding of this correct ?
  • And second, Ok, it leads to a GDScript file, which one though ?

A little more specs, for I made a mistake and accidentally posted this before finishing it, the file where i am “stuck” is the editor/plugins/editor_plugin.cpp, the call I am talking about is :

GDVIRTUAL_CALL(_run_scene, p_scene, r_args, new_args)