Skip to content

Commit

Permalink
remove panic in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jun 2, 2024
1 parent 3c4371a commit d6b5db9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,20 @@ pub fn build(b: *Build) !void {
"triangle",
"cube",
"blend",
"imgui",
"mrt",
"saudio",
"sgl_context",
"droptest",
"sgl_points",
"debugtext",
"user_data", // Need GC for user data [associative array]
"imgui",
"droptest",
};

inline for (examples) |example| {
if (std.mem.eql(u8, example, "imgui") or std.mem.eql(u8, example, "droptest"))
if (!opt_with_sokol_imgui)
@panic("Need ImGui library!!");
break;
const ldc = try ldcBuildStep(b, .{
.name = example,
.artifact = lib_sokol,
Expand Down

0 comments on commit d6b5db9

Please sign in to comment.