Permalink
Browse files

Add nortti MWC feature flag. When enabled, GAMS will avoid using type…

…id and dynamic_cast.
  • Loading branch information...
dskyle committed Apr 17, 2018
1 parent c24fe01 commit c8412860580de99affda626788b99f92a3cf2695
Showing with 19 additions and 1 deletion.
  1. +6 −0 default.features
  2. +2 −1 gams.mpc
  3. +11 −0 using_nortti.mpb
View
@@ -42,3 +42,9 @@ docs = 0
/// @feature ros
/// Enable this to support ROS platforms
ros = 0
/// @feature nortti
/// Enable this feature if you don't want GAMS to use RTTI
/// (Run-Time Type Information, i.e., typeid and dynamic_cast)
nortti = 0
View
@@ -1,4 +1,4 @@
project (gams) : using_madara, using_ace, using_utm, vrep_lib, ros_lib, port/java/using_android, port/java/using_java, port/java/using_openjdk {
project (gams) : using_madara, using_ace, using_utm, vrep_lib, ros_lib, port/java/using_android, port/java/using_java, port/java/using_openjdk, using_nortti {
libout = lib
sharedname = GAMS
includes += src
@@ -38,6 +38,7 @@ project (gams) : using_madara, using_ace, using_utm, vrep_lib, ros_lib, port/jav
using_gams.mpb
using_utm.mpb
using_vrep.mpb
using_nortti.mpb
using_ros.mpb
vrep_lib.mpb
ros_lib.mpb
View
@@ -0,0 +1,11 @@
feature (nortti) {
requires += nortti
macros += GAMS_NO_RTTI
Header_Files {
}
Source_Files {
}
}

0 comments on commit c841286

Please sign in to comment.