FABGen icon indicating copy to clipboard operation
FABGen copied to clipboard

Detect ambiguous polymorphic functions

Open astrofra opened this issue 1 year ago • 0 comments

Fabgen should detect the ambiguous polymorphic functions, where the type of a C enum is replaced by a Python/Lua int equivalent, making it impossible for the dispatch to trace the correct type of the parameter.

An example can be found with the RenderInit function in Harfang :

RenderInit(width: int, height: int, reset_flags: ResetFlags) -> Window
RenderInit(width: int, height: int, type: RendererType) -> Window
RenderInit(window_title: str, width: int, height: int, reset_flags: ResetFlags) -> Window
RenderInit(window_title: str, width: int, height: int, type: RendererType) -> Window

astrofra avatar Sep 27 '22 10:09 astrofra