diff options
author | Itay Grudev <itay@grudev.com> | 2016-08-10 02:43:30 +0100 |
---|---|---|
committer | Itay Grudev <itay@grudev.com> | 2016-08-10 03:42:46 +0100 |
commit | 6f585973dc2989d1a8e9fb8e443e78a3de7845d0 (patch) | |
tree | 8ebfc753c37cb35e60f2046580db230f1f0b1e5a /examples/basic/main.cpp | |
parent | SingleApplication v3.0a (diff) | |
download | singleapplication-6f585973dc2989d1a8e9fb8e443e78a3de7845d0.tar.xz |
Added a basic usage example
Diffstat (limited to 'examples/basic/main.cpp')
-rwxr-xr-x | examples/basic/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/basic/main.cpp b/examples/basic/main.cpp new file mode 100755 index 0000000..4787d1c --- /dev/null +++ b/examples/basic/main.cpp @@ -0,0 +1,9 @@ +#include <SingleApplication.h> + +int main(int argc, char *argv[]) +{ + // Allow secondary instances + SingleApplication app( argc, argv ); + + return app.exec(); +} |