Skip to content

Commit 4484c5b

Browse files
committed
Adding README and License
1 parent 2bd4a85 commit 4484c5b

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Ecosophy ehf.
4+
All rights reserved.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10+
of the Software, and to permit persons to whom the Software is furnished to do
11+
so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Sentry Native bindings for Jai
2+
3+
These are basic sentry-native bindings for the Jai programming language.
4+
5+
## Usage
6+
7+
Put this library as `Sentry` in your `modules/` directory. Then:
8+
9+
```
10+
#import "Sentry";
11+
12+
main :: () {
13+
DEBUG :: true;
14+
init_sentry("your dsn", "release info", DEBUG);
15+
sentry_set_level(.WARNING);
16+
17+
...
18+
}
19+
```
20+
21+
In order to run, the `crashpad_handler` executable must be in the same location
22+
as your binary, and `libsentry.so` must be found. Both can be obtained by running `build.sh`.
23+
24+
For way more information, see [the sentry-native documentation](https://docs.sentry.io/platforms/native/)

0 commit comments

Comments
 (0)