Put the #ifdef directives before the case statements in Target.hpp to avoid issues.
This commit is contained in:
parent
2f853fe797
commit
2a5df0bb32
|
@ -38,17 +38,14 @@ shared_ptr<Target> Target::forName(string_view name) {
|
||||||
shared_ptr<Target> target;
|
shared_ptr<Target> target;
|
||||||
#define ADDTARGET(X) target = make_shared<X>(X());
|
#define ADDTARGET(X) target = make_shared<X>(X());
|
||||||
switch (selected) {
|
switch (selected) {
|
||||||
case LUA:
|
|
||||||
#ifdef LUA_HPP
|
#ifdef LUA_HPP
|
||||||
ADDTARGET(LUA_HPP); break;
|
case LUA: ADDTARGET(LUA_HPP); break;
|
||||||
#endif
|
#endif
|
||||||
case JS:
|
|
||||||
#ifdef JS_HPP
|
#ifdef JS_HPP
|
||||||
ADDTARGET(JS_HPP); break;
|
case JS: ADDTARGET(JS_HPP); break;
|
||||||
#endif
|
#endif
|
||||||
case PY:
|
|
||||||
#ifdef PY_HPP
|
#ifdef PY_HPP
|
||||||
ADDTARGET(PY_HPP); break;
|
case PY: ADDTARGET(PY_HPP); break;
|
||||||
#endif
|
#endif
|
||||||
case NONE:
|
case NONE:
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Reference in New Issue