Generated C has typedefs in the wrong order #19367
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Describe the bug
I have an auto translated wrapper that compiles successfully when in the main module, but does not compile correctly when its in its own module.
Reproduction Steps
Using the attached module, and the following code:
Its meant to be compiled as a shared library:
v -shared .
Expected Behavior
Successful compile
Current Behavior
When compiling, it gives the following error:
When checking the tmp c file on line 2109, it shows it using
gdi__GDExtensionInterfaceFunctionPtr
, which is defined on line 2172:line 2109:
line 2172:
Possible Solution
typedefs could be checked for types it uses, and if that type hasn't been defined yet, define it first
Additional Information/Context
This is for GDExtension 4.1 for Godot. I plan on fully developing and publishing this as an open source library once its in a usable state, allowing users to use V for game development in Godot
V version
V 0.4.1 bb95a27
Environment details (OS name and version, etc.)
Tested on Windows:
And WSL
Important
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority
for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: