Skip to content

Instantly share code, notes, and snippets.

@sergot
Last active August 29, 2015 14:16
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 sergot/5fc619cd6dc048bbf4cf to your computer and use it in GitHub Desktop.
Save sergot/5fc619cd6dc048bbf4cf to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#ifdef WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT extern
#endif
class Foo {
public:
Foo();
~Foo();
virtual int TakeAnInt(int i) {
return 1;
}
};
Foo::Foo() {};
Foo::~Foo() {};
@FROGGS
Copy link

FROGGS commented Feb 24, 2015

should be this I guess:

class Foo {
public:
    Foo();
    ~Foo();
    virtual int TakeAnInt(int i) {
        return 1;
    }
}; 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment