FABGen
FABGen copied to clipboard
Detect ambiguous polymorphic functions
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