- Joined
- Apr 14, 2012
- Messages
- 2,585
- Reaction score
- 0
- Points
- 36
Still working on this, Im creating a simple SFML test app to get comfortable with the idea of using types from external libraries linked at runtime:
https://github.com/BruceJohnJennerLawso/Dynamo
One part of the API that I am having difficulty making sense of:
what the heck does that do? I would figure that all that would be needed would be
which uses extern so that DLLCLBK is visible everywhere in the source code somehow? But what the heck is the "C" part doing?
https://github.com/BruceJohnJennerLawso/Dynamo
One part of the API that I am having difficulty making sense of:
Code:
extern "C" {
#include "lua\lua.h"
}
// ... //
#define DLLCLBK extern "C" __declspec(dllexport)
what the heck does that do? I would figure that all that would be needed would be
Code:
#define DLLCLBK extern __declspec(dllexport)
which uses extern so that DLLCLBK is visible everywhere in the source code somehow? But what the heck is the "C" part doing?
Last edited: