mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This allows calling a C++ function with default arguments from Swift without having to explicitly specify the values of all arguments. rdar://103975014
11 lines
407 B
C++
11 lines
407 B
C++
#include "default-arguments.h"
|
|
|
|
ArgTy ArgTy::createZero() { return {0}; }
|
|
|
|
int HasStaticMethodWithDefaultArg::value = 0;
|
|
int HasStaticMethodWithDefaultArg::counter = 0;
|
|
|
|
bool HasStaticMethodWithDefaultArg::isNonZero(int v) { return v != 0; }
|
|
bool HasStaticMethodWithDefaultArg::isNonZeroCounter(int v) { return v != 0; }
|
|
bool HasStaticMethodWithDefaultArg::isNonZeroPrivateCounter(int v) { return v != 0; }
|