Skip to content

Commit

Permalink
Huh, didn't see that error coming
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed May 3, 2024
1 parent 910eb86 commit 80356be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-and-deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ name: Build & Deploy Pages
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch: ~
jobs:
build-wasm:
name: Build wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: numworks/setup-emscripten@bbc4f5e15974bc13e69fdadecfd1858ecb1c4dbb # there is no v1 tag/branch
- name: Get emscripten version
id: em-version
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. See [Keep a

## Unreleased

## [1.8.1] - 2024-05-03

### Changed

- Removed some `constexpr` annotations so the code compiles on macOS.

## [1.8.0] - 2024-05-03

### Added
Expand Down Expand Up @@ -227,3 +233,4 @@ First versioned release.
[1.6.2]: https://github.com/bbrk24/Trilangle/tree/1.6.2
[1.7.0]: https://github.com/bbrk24/Trilangle/tree/1.7.0
[1.8.0]: https://github.com/bbrk24/Trilangle/tree/1.8.0
[1.8.1]: https://github.com/bbrk24/Trilangle/tree/1.8.1
6 changes: 3 additions & 3 deletions src/thread.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public:
// Currently only called with T = std::vector<int24_t> and T = const std::vector<int24_t>&.
// Generic to allow both move- and copy-construction.
template<typename T>
CONSTEXPR_VECTOR thread(const thread& other, direction d, T&& stack) noexcept :
thread(const thread& other, direction d, T&& stack) noexcept :
program_walker(other.m_program),
m_stack(std::forward<T>(stack)),
m_ip{ other.m_ip.coords, d },
Expand All @@ -29,11 +29,11 @@ public:
advance();
}

CONSTEXPR_VECTOR thread(const thread& other, direction d) noexcept : thread(other, d, other.m_stack) {}
inline thread(const thread& other, direction d) noexcept : thread(other, d, other.m_stack) {}

void tick();
protected:
CONSTEXPR_VECTOR thread(NONNULL_PTR(const program) p, flags f) noexcept :
inline thread(NONNULL_PTR(const program) p, flags f) noexcept :
program_walker(p),
m_stack(),
m_ip{ { SIZE_C(0), SIZE_C(0) }, direction::southwest },
Expand Down

0 comments on commit 80356be

Please sign in to comment.