-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version numbers and add commit hash support
Updated version numbers across various files to "0.2.1". Added commit hash retrieval and binding for better tracking of builds. NP-349
- Loading branch information
Showing
8 changed files
with
53 additions
and
11 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 |
---|---|---|
@@ -1,7 +1,25 @@ | ||
#include <dulcificum.h> | ||
#include <emscripten/bind.h> | ||
|
||
struct info_t | ||
{ | ||
std::string dulcificum_version; | ||
std::string dulcificum_hash; | ||
}; | ||
|
||
info_t get_info() | ||
{ | ||
return { DULCIFICUM_VERSION, DULCIFICUM_HASH }; | ||
} | ||
|
||
EMSCRIPTEN_BINDINGS(dulcificum) | ||
{ | ||
emscripten::function("gcode_2_miracle_jtp", &dulcificum::GCode2Miracle_JTP); | ||
} | ||
// Binding for info_t structure | ||
emscripten::value_object<info_t>("info_t") | ||
.field("dulcificum_version", &info_t::dulcificum_version) | ||
.field("dulcificum_hash", &info_t::dulcificum_hash); | ||
|
||
// Binding for get_info function | ||
emscripten::function("dulcificum_info", &get_info); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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