How to wrap a function with variable length arguments?

后端 未结 7 2065
借酒劲吻你
借酒劲吻你 2020-12-05 12:54

I am looking to do this in C/C++.

I came across Variable Length Arguments but this suggests a solution with Python & C using libffi.

Now, if I want to wr

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 13:13

    How do you mean a pure C/C++ solution?

    The rest parameter (...) is supported cross platform in the C runtime.

    http://msdn.microsoft.com/en-us/library/kb57fad8.aspx

提交回复
热议问题