Skip to content

Commit

Permalink
Update default_collector to be declared as an extern template
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Sep 21, 2024
1 parent 999e288 commit 0ba0da9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,6 @@ else()
COMMAND ${CMAKE_MAKE_PROGRAM} -j${${PROJECT_NAME}_NCPU}
COMMAND ${CMAKE_MAKE_PROGRAM} test ARGS=-j${${PROJECT_NAME}_NCPU}
COMMAND ${CMAKE_MAKE_PROGRAM} package
# COMMAND sudo installer -pkg ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.pkg -target $ENV{HOME}
COMMAND sudo installer -pkg ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.pkg -target $ENV{HOME}
)
endif()
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.239_amd64.deb
sudo apt install build/meevax_0.5.240_amd64.deb
```

or
Expand Down Expand Up @@ -122,9 +122,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.239.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.240.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.239_amd64.deb`
| `package` | Generate debian package `meevax_0.5.240_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.239
0.5.240
14 changes: 11 additions & 3 deletions include/meevax/kernel/pair.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ namespace meevax
{
inline namespace kernel
{
using null = std::nullptr_t;

struct pair;
}

inline namespace memory
{
extern template class collector<pair, bool, std::int32_t, float, character, instruction>;
}

inline namespace kernel
{
using null = std::nullptr_t;

using default_collector = collector<pair, bool, int, float, character, instruction>;
using default_collector = collector<pair, bool, std::int32_t, float, character, instruction>;

using object = default_collector::mutator;

Expand Down
5 changes: 5 additions & 0 deletions src/kernel/pair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

namespace meevax
{
inline namespace memory
{
template class collector<pair, bool, std::int32_t, float, character, instruction>;
}

inline namespace kernel
{
let unit = nullptr;
Expand Down

0 comments on commit 0ba0da9

Please sign in to comment.