Skip to content

Commit f11b769

Browse files
committed
Don't assume hooks are functions
This should theoretically allow FunctionWrappers or callable structs to be used, though serialization may be an issue.
1 parent 031f5a4 commit f11b769

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parameters.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const RESOLUTION = 1000 # 1 μs = 1000 ns
55
# Parameters #
66
##############
77

8-
mutable struct Parameters{A<:Function,B<:Function}
8+
mutable struct Parameters{A,B}
99
seconds::Float64
1010
samples::Int
1111
evals::Int
@@ -18,9 +18,9 @@ mutable struct Parameters{A<:Function,B<:Function}
1818
run_customisable_func_only::Bool
1919
enable_customisable_func::Symbol
2020
customisable_gcsample::Bool
21-
setup_prehook::Function
22-
teardown_posthook::Function
23-
sample_result::Function
21+
setup_prehook
22+
teardown_posthook
23+
sample_result
2424
prehook::A
2525
posthook::B
2626
end

0 commit comments

Comments
 (0)