Skip to content

Commit

Permalink
Merge pull request #80 from andrjohns/sync-dev
Browse files Browse the repository at this point in the history
Update cpp11 and QuickJS-NG sources for CRAN errors
  • Loading branch information
andrjohns authored Feb 26, 2025
2 parents bd3c2c6 + 728a2df commit 78e0ede
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/R-CMD-check-special.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
- { label: "c23",
name: "c23",
container: "ghcr.io/r-hub/containers/c23:latest"}
- { label: "gcc14",
name: "gcc14",
container: "ghcr.io/r-hub/containers/gcc14:latest"}
- { label: "gcc15",
name: "gcc15",
container: "ghcr.io/r-hub/containers/gcc15:latest"}
- { label: "clang20",
name: "clang20",
container: "ghcr.io/r-hub/containers/clang20:latest"}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: QuickJSR
Title: Interface for the 'QuickJS' Lightweight 'JavaScript' Engine
Version: 1.5.2
Version: 1.6.0
Authors@R: c(
person(c("Andrew", "R."), "Johnson", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-7000-8065")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# QuickJSR 1.6.0
* Sync bundled QuickJS-NG engine to 9d6e372 to address gcc-ubsan error
* Patch bundled cpp11 headers for whitespace in literal operator declarations

# QuickJSR 1.5.2
* Fix conversions of NULL/NA/undefined values between R and JS

Expand Down
2 changes: 1 addition & 1 deletion inst/include/cpp11/R.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
namespace cpp11 {
namespace literals {

constexpr R_xlen_t operator"" _xl(unsigned long long int value) { return value; }
constexpr R_xlen_t operator""_xl(unsigned long long int value) { return value; }

} // namespace literals

Expand Down
2 changes: 1 addition & 1 deletion inst/include/cpp11/named_arg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class named_arg {

namespace literals {

inline named_arg operator"" _nm(const char* name, std::size_t) { return named_arg(name); }
inline named_arg operator""_nm(const char* name, std::size_t) { return named_arg(name); }

} // namespace literals

Expand Down

0 comments on commit 78e0ede

Please sign in to comment.