mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
1ce026d168
This is achieved by marking a void function with the void_return attribute and then calling that function in an @return expression. @return can be used only inside a void function and only with void functions marked with the void_return attribute. As this is intended for Objective-QC message forwarding, it is deliberately "difficult" to use as returning a larger than expected value is unlikely to end well for the calling function. However, as a convenience, "@return nil" is allowed (in a void function). It always returns an integer (which, of course,can be interpreted as a pointer). This is safe because if the return value is ignored, it will go into the progs return buffer, and if it is not ignored, it is the smallest value that can be returned. |
||
---|---|---|
.. | ||
doc | ||
include | ||
source | ||
test | ||
AUTHORS | ||
Makemodule.am | ||
TODO |