Skip to content

Instantly share code, notes, and snippets.

@majiang
Created September 3, 2012 16:43
Show Gist options
  • Select an option

  • Save majiang/3610664 to your computer and use it in GitHub Desktop.

Select an option

Save majiang/3610664 to your computer and use it in GitHub Desktop.
extern(C)
void f(
size_t l, ulong* x, // 引数のサイズと先頭
ref size_t rl, ulong* ret // 返り値の最大サイズと先頭
)
{
/* rl を実際の返り値のサイズに、ret の中身を返り値に書き換える。
* rl が受け取った時より大きくなる場合は例外でも投げる?
*/
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment