-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
25 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
#include <iostream> | ||
#include "define.hpp" | ||
|
||
#ifdef EXPORT_APP1 | ||
#undef API | ||
#define API API_EXPORT | ||
#else | ||
#undef API | ||
#define API API_IMPORT | ||
#endif | ||
#include "core.hpp" | ||
|
||
namespace Kratos { | ||
|
||
KRATOS_DEFINE_VARIABLE(int, APP1_INT) | ||
KRATOS_DEFINE_VARIABLE(API(APP1), int, APP1_INT) | ||
|
||
API int app1_function(); | ||
API void test_app1(); | ||
API(APP1) int app1_function(); | ||
API(APP1) void test_app1(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
#include <iostream> | ||
#include "define.hpp" | ||
|
||
#ifdef EXPORT_APP2 | ||
#undef API | ||
#define API API_EXPORT | ||
#else | ||
#undef API | ||
#define API API_IMPORT | ||
#endif | ||
|
||
namespace Kratos { | ||
|
||
KRATOS_DEFINE_VARIABLE(int, APP2_INT) | ||
KRATOS_DEFINE_VARIABLE(API(APP2), int, APP2_INT) | ||
|
||
API int app2_function(); | ||
API void test_app2(); | ||
API(APP2) int app2_function(); | ||
API(APP2) void test_app2(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
#include <iostream> | ||
#include "define.hpp" | ||
|
||
#ifdef EXPORT_CORE | ||
#undef API | ||
#define API API_EXPORT | ||
#else | ||
#undef API | ||
#define API API_IMPORT | ||
#endif | ||
|
||
namespace Kratos { | ||
|
||
KRATOS_DEFINE_VARIABLE(int, CORE_INT) | ||
KRATOS_DEFINE_VARIABLE(API(CORE), int, CORE_INT) | ||
|
||
API int core_function(); | ||
API void test_core(); | ||
API(CORE) int core_function(); | ||
API(CORE) void test_core(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters