Used to set and unset scoped defines to preproc_map. More...
#include <config_cache.hpp>
Public Member Functions | |
scoped_preproc_define_internal (const scoped_preproc_define_internal &)=delete | |
scoped_preproc_define_internal & | operator= (const scoped_preproc_define_internal &)=delete |
scoped_preproc_define_internal (const std::string &name, bool add=true) | |
Adds normal preproc define. More... | |
~scoped_preproc_define_internal () | |
This removes preproc define from cacher. More... | |
Protected Attributes | |
std::string | name_ |
bool | add_ |
Used to set and unset scoped defines to preproc_map.
This is preferred form to set defines that aren't global
Definition at line 40 of file config_cache.hpp.
|
delete |
|
inline |
Adds normal preproc define.
name | name of preproc define to add. |
add | true if we should add this. |
Definition at line 52 of file config_cache.hpp.
References game_config::scoped_preproc_define_internal< T >::add_, and game_config::scoped_preproc_define_internal< T >::name_.
|
inline |
This removes preproc define from cacher.
Definition at line 62 of file config_cache.hpp.
References game_config::scoped_preproc_define_internal< T >::add_, and game_config::scoped_preproc_define_internal< T >::name_.
|
delete |
|
protected |
Definition at line 75 of file config_cache.hpp.
Referenced by game_config::scoped_preproc_define_internal< T >::scoped_preproc_define_internal(), and game_config::scoped_preproc_define_internal< T >::~scoped_preproc_define_internal().
|
protected |
Definition at line 74 of file config_cache.hpp.
Referenced by game_config::scoped_preproc_define_internal< T >::scoped_preproc_define_internal(), and game_config::scoped_preproc_define_internal< T >::~scoped_preproc_define_internal().