blob: 0c616814e810a49100214d8bba8421bf3c7bcb0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "mylib.h"
#include <iostream>
Test::Test() {
std::cout << "Test initialized" << std::endl;
}
Test::Test(int param) {
std::cout << "Test initialized with param " << param << std::endl;
}
void Test::testCallFromClass() {
std::cout << "Calling C++ class function from Swift is working" << std::endl;
}
void testCallFromSwift() {
std::cout << "Calling this C++ function from Swift is working" << std::endl;
}
void testCallWithParam(const std::string ¶m) {
std::cout << param << std::endl;
}
|