W3cubDocs

/D

dmd.argtypes

Compiler implementation of the D programming language.

Authors:
Walter Bright
License:
Boost License 1.0
Source
argtypes.d
Documentation
https://dlang.org/phobos/dmd_argtypes.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/argtypes.d
TypeTuple toArgTypes(Type t);

This breaks a type down into 'simpler' types that can be passed to a function in registers, and returned in registers. It's highly platform dependent.

Parameters:
Type t type to break down
Returns:
tuple of types, each element can be passed in a register. A tuple of zero length means the type cannot be passed/returned in registers. null indicates a void.
References
For 64 bit code, follows Itanium C++ ABI 1.86 Chapter 3 http://refspecs.linux-foundation.org/cxxabi-1.86.html#calls

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_argtypes.html