Skip to content

Commit a64236b

Browse files
author
Christopher Doris
committed
add pyconst macro to the API
1 parent 37686ee commit a64236b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/API/exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export pycallable
9696
export pycompile
9797
export @pyeval
9898
export @pyexec
99+
export @pyconst
99100

100101
# Convert
101102
export pyconvert

src/API/macros.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Core
22
macro pyeval end
33
macro pyexec end
4+
macro pyconst end
45

56
# Convert
67
macro pyconvert end

src/Core/Core.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ import ..PythonCall:
134134
pycompile,
135135
@pyeval,
136136
@pyexec,
137-
pyconvert
137+
pyconvert,
138+
@pyconst
138139

139140
export
140141
pyisnot,

src/Core/pyconst_macro.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ macro pyconst(ex)
2121
end
2222
:(pyisnull($x) ? pycopy!($x, $val) : $x)
2323
end
24-
export @pyconst

0 commit comments

Comments
 (0)