Update to new forced literal (#213)

This commit is contained in:
Nikolas 2025-03-06 15:17:23 +01:00
parent 9444b5a438
commit 279bcc0a13
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784

View File

@ -70,7 +70,7 @@ zig fetch --save git+https://github.com/Not-Nik/raylib-zig#devel
Then add raylib-zig as a dependency and import its modules and artifact in your `build.zig`: Then add raylib-zig as a dependency and import its modules and artifact in your `build.zig`:
```zig ```zig
const raylib_dep = b.dependency("raylib-zig", .{ const raylib_dep = b.dependency("raylib_zig", .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -89,7 +89,7 @@ exe.root_module.addImport("raygui", raygui);
``` ```
If you additionally want to support Web as a platform with emscripten, you will need to use `emcc.zig` by importing If you additionally want to support Web as a platform with emscripten, you will need to use `emcc.zig` by importing
raylib-zig's build script with `const rlz = @import("raylib-zig");` and then accessing its functions with `rlz.emcc`. raylib-zig's build script with `const rlz = @import("raylib_zig");` and then accessing its functions with `rlz.emcc`.
Refer to raylib-zig's project template on how to use them. Refer to raylib-zig's project template on how to use them.
### Passing build options ### Passing build options
@ -98,7 +98,7 @@ raylib allows customisations of certain parts of its build process such as choos
shared library or not including certain modules. You can optionally pass these options to raylib-zig dependency like so shared library or not including certain modules. You can optionally pass these options to raylib-zig dependency like so
```zig ```zig
const raylib_dep = b.dependency("raylib-zig", .{ const raylib_dep = b.dependency("raylib_zig", .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
.shared = true, // Build raylib as a shared library .shared = true, // Build raylib as a shared library