Skip to content

Commit 3079ad2

Browse files
Update examples
1 parent ceeae42 commit 3079ad2

File tree

5 files changed

+24
-11
lines changed

5 files changed

+24
-11
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
#include <string>
12

2-
3-
4-
5-
6-
int TestFunc()
3+
std::string TestFunc()
74
{
8-
return 8;
5+
return "For GCC";
96
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
int TestFunc();
1+
#include <string>
2+
3+
std::string TestFunc();
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <string>
2+
3+
std::string TestFunc()
4+
{
5+
return "For MSVC";
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <string>
2+
3+
std::string TestFunc();

Examples/test.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
# Target Profile
1111
"g++":
1212
- "./OtherSources/AnotherSourceFileGcc.cpp"
13-
Default:
14-
- "./AnotherSourceFile.cpp"
15-
- "./AnotherSourceFile2.cpp"
13+
"msvc":
14+
- "./OtherSources/AnotherSourceFileMSVC.cpp"
1615
1716
Defines:
1817
Default:
@@ -54,7 +53,13 @@
5453
#define ssLOG_DLL 1
5554
#include "ssLogger/ssLog.hpp"
5655

57-
#include "./OtherSources/AnotherSourceFileGcc.hpp"
56+
#if defined(__GNUC__)
57+
#include "./OtherSources/AnotherSourceFileGcc.hpp"
58+
#endif
59+
60+
#if defined(_MSC_VER)
61+
#include "./OtherSources/AnotherSourceFileMSVC.hpp"
62+
#endif
5863

5964
#include <iostream>
6065
#include <chrono>

0 commit comments

Comments
 (0)