I'm trying to expose a function to the compiler based on the version info.
I have this version info.
#define LUA_VERSION_NUM 503
And I want to include the following function only when the version is equal to, or smaller than 501
static void lua_len(lua_State *L, int i)
{
//do something
}
How is this possible in C++?