@@ -38,7 +38,7 @@ arguments as a tuple-type in `argtyp`.
38
38
:(@asmcall )
39
39
40
40
macro asmcall (asm:: String , constraints:: String , side_effects:: Bool ,
41
- rettyp:: Symbol = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
41
+ rettyp:: Union{Expr, Symbol} = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
42
42
asm_val = Val {Symbol(asm)} ()
43
43
constraints_val = Val {Symbol(constraints)} ()
44
44
return esc (:(LLVM. Interop. _asmcall ($ asm_val, $ constraints_val,
48
48
49
49
# shorthand: no side_effects
50
50
macro asmcall (asm:: String , constraints:: String ,
51
- rettyp:: Symbol = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
51
+ rettyp:: Union{Expr, Symbol} = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
52
52
esc (:(LLVM. Interop. @asmcall $ asm $ constraints false $ rettyp $ argtyp $ (args... )))
53
53
end
54
54
55
55
# shorthand: no side_effects or constraints
56
56
macro asmcall (asm:: String ,
57
- rettyp:: Symbol = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
57
+ rettyp:: Union{Expr, Symbol} = :(Nothing), argtyp:: Expr = :(Tuple{}), args... )
58
58
esc (:(LLVM. Interop. @asmcall $ asm " " $ rettyp $ argtyp $ (args... )))
59
59
end
0 commit comments