-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: zig json init * chore: rebased package.json * feat: buildexe snip
- Loading branch information
1 parent
9a91957
commit aea9940
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"Import": { | ||
"prefix": "import", | ||
"body": ["const ${1} = @import(\"${1}\")"], | ||
"description": "Importing Librarys" | ||
}, | ||
"CImport": { | ||
"prefix": "cimport", | ||
"body": [ | ||
"const c = @cImport({", | ||
"@cDefine(\"${1}\")", | ||
"});" | ||
], | ||
"description": "Importing C Header Files" | ||
}, | ||
"buildExe": { | ||
"prefix": "bExe", | ||
"body": [ | ||
"const exe = b.addExecutable(.{", | ||
".name = \"${1}",\", | ||
".root_source_file = b.path(\"${2: path}\"),", | ||
".target = target,", | ||
".optimize = optimize,", | ||
"});", | ||
"\n\n\n b.installArtifact(exe);", | ||
], | ||
"description": "Building an exe" | ||
} | ||
} |