h-raylib 5.5.3.0 → 5.5.3.1
raw patch · 4 files changed
+20/−3 lines, 4 filesdep ~base
Dependency ranges changed: base
Files
- CHANGELOG.md +5/−0
- default.nix +1/−1
- h-raylib.cabal +1/−1
- lib/rl_bindings.c +13/−1
CHANGELOG.md view
@@ -8,6 +8,11 @@ h-raylib's version numbers do not follow the usual format. The first two numbers in the version track the underlying C raylib version. For example, `5.1.x.x` versions use raylib 5.1 under the hood. The third number represents breaking changes (renamed/deleted functions or modules). The last number represents non-breaking changes (new functions or modules, bug fixes, etc). The safest version bound format to use is `h-raylib >=x.y.z.w && <x.y.(z+1)` (instead of the usual `^>=` bound). +## Version 5.5.3.1+_14 October 2025_++- Fixed a bug with `setTraceLogCallback` not working properly+ ## Version 5.5.3.0 _14 August 2025_
default.nix view
@@ -3,7 +3,7 @@ }: mkDerivation { pname = "h-raylib";- version = "5.5.3.0";+ version = "5.5.3.1"; src = ./.; isLibrary = true; isExecutable = buildExamples;
h-raylib.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: h-raylib-version: 5.5.3.0+version: 5.5.3.1 synopsis: Raylib bindings for Haskell category: graphics description:
lib/rl_bindings.c view
@@ -2382,8 +2382,20 @@ void CustomCallback(int logLevel, const char *text, va_list args) {- char *formatted = TextFormat(text, args);+ va_list args_copy;+ va_copy(args_copy, args);++ int len = vsnprintf(NULL, 0, text, args_copy);+ va_end(args_copy);++ if (len < 0) return;++ char *formatted = malloc(len + 1);++ vsnprintf(formatted, len + 1, text, args); customCallback(logLevel, formatted);++ free(formatted); } RLBIND void SetTraceLogCallback_(TraceLogCallback_ a)