-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.gen.c: support inter-dependent function types (vlang#20638)
- Loading branch information
Showing
3 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
typedef void (*gdi__Function_ptr)(); | ||
typedef void (*gdi__Function_ptr2)(); | ||
typedef gdi__Function_ptr* (*gdi__Get_proc_address)(i8*); | ||
typedef void (*gdi__Set_proc_address)(gdi__Function_ptr2*); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// vtest vflags: -shared | ||
module gdi | ||
|
||
pub type Get_proc_address = fn(&i8) &Function_ptr | ||
pub type Set_proc_address = fn(&Function_ptr2) | ||
|
||
pub type Function_ptr = fn () | ||
pub type Function_ptr2 = fn () |