Skip to content

Commit

Permalink
Merge pull request #523 from desttinghim/png2src-zig-pub
Browse files Browse the repository at this point in the history
Make png2src template for zig use `pub const`
  • Loading branch information
aduros authored Aug 23, 2022
2 parents 3a30607 + beeaeaa commit 608f77c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/lib/png2src.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ const {{rustName}}: [u8; {{length}}] = [ {{bytes}} ];
zig:
`{{#sprites}}
// {{name}}
const {{name}}_width = {{width}};
const {{name}}_height = {{height}};
const {{name}}_flags = {{flags}}; // {{flagsHumanReadable}}
const {{name}} = [{{length}}]u8{ {{bytes}} };
pub const {{name}}_width = {{width}};
pub const {{name}}_height = {{height}};
pub const {{name}}_flags = {{flags}}; // {{flagsHumanReadable}}
pub const {{name}} = [{{length}}]u8{ {{bytes}} };
{{/sprites}}`,
};
Expand Down

0 comments on commit 608f77c

Please sign in to comment.