Skip to content

Commit

Permalink
pub usingnamespace could be used
Browse files Browse the repository at this point in the history
  • Loading branch information
kwakzalver committed Apr 29, 2023
1 parent f7949f2 commit 1c038fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/c.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub usingnamespace @cImport({
@cInclude("SDL2/SDL.h");
@cInclude("SDL2/SDL_ttf.h");
});
6 changes: 1 addition & 5 deletions src/window.zig
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
const C = @cImport({
@cInclude("SDL2/SDL.h");
@cInclude("SDL2/SDL_ttf.h");
});

const C = @import("c.zig");
const std = @import("std");
const definitions = @import("definitions.zig");
const game = @import("game.zig");
Expand Down

0 comments on commit 1c038fa

Please sign in to comment.