Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API_LEVEL_LNS #662

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_all_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install tomlq
run: |
Expand Down Expand Up @@ -96,14 +96,14 @@ jobs:

steps:
- name: Clone App
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: LedgerHQ/${{ matrix.repo_info.repo_name }}
ref: ${{ matrix.repo_info.default_branch }}
submodules: true

- name: Clone SDK
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sdk
ref: ${{ inputs.sdk_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_clang_static_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:

steps:
- name: Clone Boilerplate
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: LedgerHQ/app-boilerplate
ref: master

- name: Clone SDK
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sdk

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand Down
11 changes: 11 additions & 0 deletions include/cx_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@
* Check the error code of a function.
* @hideinitializer
*/
#ifdef HAVE_BOLOS
#define CX_CHECK(call) \
do { \
error = call; \
if (error) { \
goto end; \
} \
} while (0)
#else
#define CX_CHECK(call) \
do { \
error = call; \
if (error) { \
PRINTF("[CX_CHECK] - %s: %d\n", __FILE__, __LINE__); \
goto end; \
} \
} while (0)
#endif

/**
* Check the error code of a function and ignore
Expand Down
Loading