mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-08 00:14:10 +02:00
Added support for tuple return with __asmtuple!(int,int) etc.
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
module ldc.llvmasm;
|
||||
|
||||
pragma(llvm_inline_asm)
|
||||
template __asm()
|
||||
struct __asmtuple_t(T...)
|
||||
{
|
||||
void __asm(char[] asmcode, char[] constraints, ...);
|
||||
T v;
|
||||
}
|
||||
|
||||
pragma(llvm_inline_asm)
|
||||
template __asm(T)
|
||||
{
|
||||
T __asm(char[] asmcode, char[] constraints, ...);
|
||||
void __asm( )(char[] asmcode, char[] constraints, ...);
|
||||
T __asm(T)(char[] asmcode, char[] constraints, ...);
|
||||
|
||||
template __asmtuple(T...)
|
||||
{
|
||||
__asmtuple_t!(T) __asmtuple(char[] asmcode, char[] constraints, ...);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user