Skip to content

v0.5.5

Choose a tag to compare

@m3m0r7 m3m0r7 released this 22 Jun 07:09

Fixes

  • Global functions now declare enum return types. A generated global helper
    (features.use_functions) for a function returning a C enum declared its return
    as int|<wrapper>, but the entity it delegates to returns the generated PHP enum —
    so calling it (e.g. \Pnlx\Func\Libsdl\SDL_HasEvent(), which returns SDL_bool)
    threw a TypeError. The global function now returns <Enum>|null, matching the
    entity method.