-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2016-01-01 16:53:41 +0000, wrote:
i'm working on a Common Lisp FFI for libsdl, and the whole thing is mostly automatically generated (https://github.com/attila-lendvai/hu.dwim.sdl).
on the lisp side i have introduced a type that upon ffi->lisp conversion automatically signals an error if the return value is negative, but right now i would need to list every function by hand where it applies. unfortunately not all int return values are error codes.
if there was something along the lines:
typedef SDL_ErrorCode int;
and it was used to mark the functions that return an error code, then the lisp FFI could automatically translate that type. please consider adding this!
On 2017-08-12 21:49:16 +0000, Sam Lantinga wrote:
That seems like a good change for SDL 2.1