Skip to content

Instantly share code, notes, and snippets.

@dadadax
Created May 31, 2018 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dadadax/324c5bef14316daafad31bcbef584b00 to your computer and use it in GitHub Desktop.
Save dadadax/324c5bef14316daafad31bcbef584b00 to your computer and use it in GitHub Desktop.
#pragma once
#ifdef ADD_EXPORTS
#define ADD_API __declspec(dllexport)
#else
#define ADD_API __declspec(dllimport)
#endif
extern "C" {
ADD_API int ADD_2(int A, int B);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment