zig-sfml-wrapper icon indicating copy to clipboard operation
zig-sfml-wrapper copied to clipboard

Remove optionals where they don't make sense

Open Guigui220D opened this issue 7 months ago • 0 comments

Some places I used optionals just because the translate c made signatures with optional pointers, but it seems like

  • some methods always return a pointer
  • even when it is uninitialized it returns a value that would segfault (and I can't check that) This would avoid some checks both inside the function and for the caller

Guigui220D avatar Jul 06 '24 18:07 Guigui220D