Skip to content

Commit 17c26a2

Browse files
authored
Merge pull request #49 from DarrylGamroth/fix/julia-1.13-meta-lower
Update create_codeinfo_with_returnvalue
2 parents 3f10e01 + ac1e89d commit 17c26a2

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- "1.3" # most features work only on 1.3+
1818
- "1" # Latest Release
1919
- "1.11"
20-
- "~1.12.0-rc1"
20+
- "1.12"
21+
- "nightly"
2122
os:
2223
- ubuntu-latest
2324
arch:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Tricks"
22
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
33
authors = ["Frames White"]
4-
version = "0.1.12"
4+
version = "0.1.13"
55

66
[compat]
77
julia = "1.0"

src/Tricks.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ function create_codeinfo_with_returnvalue(argnames, spnames, sp, value)
5959
if spnames !== nothing
6060
expr = Expr(Symbol("with-static-parameters"), expr, spnames...)
6161
end
62-
ci = ccall(:jl_expand, Any, (Any, Any), expr, @__MODULE__)
62+
@static if VERSION >= v"1.13.0-DEV"
63+
ci = Meta.lower(@__MODULE__, expr)
64+
else
65+
ci = ccall(:jl_expand, Any, (Any, Any), expr, @__MODULE__)
66+
end
6367
return ci
6468
end
6569

0 commit comments

Comments
 (0)