Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host OS #70

Merged
merged 7 commits into from
Jun 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated foolib for msvc examples
  • Loading branch information
coder137 committed Jun 24, 2021
commit b8e329ef66c3bd7b34baf4b7c1e661d0b97efd83
6 changes: 3 additions & 3 deletions example/hybrid/foolib/src/foo.cpp
Original file line number Diff line number Diff line change
@@ -2,14 +2,14 @@

#include <iostream>

void vFoo() { std::cout << __FUNCTION__ << std::endl; }
EXPORT void vFoo() { std::cout << __FUNCTION__ << std::endl; }

int iFoo() {
EXPORT int iFoo() {
std::cout << __FUNCTION__ << std::endl;
return 11;
}

float fFoo(int integer) {
EXPORT float fFoo(int integer) {
std::cout << __FUNCTION__ << std::endl;
return (integer * 1.1);
}
13 changes: 10 additions & 3 deletions example/hybrid/foolib/src/foo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

void vFoo();
int iFoo();
float fFoo(int integer);
#ifdef _WIN32
#include <windows.h>
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

EXPORT void vFoo();
EXPORT int iFoo();
EXPORT float fFoo(int integer);