summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example_02_libbtb/libbtb.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/example_02_libbtb/libbtb.cc b/examples/example_02_libbtb/libbtb.cc
index f3d45b8..21e3e17 100644
--- a/examples/example_02_libbtb/libbtb.cc
+++ b/examples/example_02_libbtb/libbtb.cc
@@ -1,4 +1,5 @@
#include <BTBKit/JSONManifestBuilder.h>
+#include <cstdlib>
#ifndef _WIN32
static auto kPath = "./posix.json";
@@ -8,5 +9,7 @@ static auto kPath = ".\win64.json";
int main(int argc, char** argv) {
auto builder = new BTB::JSONManifestBuilder();
+ if (!builder) return EXIT_FAILURE;
+
return builder->buildTarget(strlen(kPath), kPath);
}