ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 11.0

# *pass-structs-by-value*

Variable, foreign-functions package

Determines how the foreign interface will respond to a structure passed into def-foreign-call as an argument, or returned from the same in the returning keyword argument. This variable also affects the behavior of defun-foreign-callable. The argument or return value can be specified C style as by value (without a *) or by reference (with a *).

See Passing structures by value in foreign-functions.html for more information.

This variable can have the following values:

- `nil` - structs passed by value are converted to pass-by-reference when seen, silently, as was the old behavior.

- `:warn` - structs passed by value are converted to pass-by-reference when seen, and in addition a warning is issued. This is the initial value.

- `t` - structs specified as passed by value are actually passed by value, making the interface consistent with C calling conventions.

Copyright (c) Franz Inc. Lafayette, CA., USA. All rights reserved.

ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 11.0