Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created November 29, 2014 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/c61a3ef46eae4770f165 to your computer and use it in GitHub Desktop.
Save kahrl/c61a3ef46eae4770f165 to your computer and use it in GitHub Desktop.
/*
coresettings.inc
to be used e.g. as follows:
#define CORE_SETTING(name, default, type, getter) settings->setDefault(#name, default)
#include "coresettings.inc"
#undef CORE_SETTING
or:
struct CoreSettings {
#define CORE_SETTING(name, default, type, getter) type name
#include "coresettings.inc"
#undef CORE_SETTING
};
extern CoreSettings g_core_settings;
*/
CORE_SETTING(new_style_leaves, "true", bool, getBool);
CORE_SETTING(enable_shaders, "true", bool, getBool);
//...
CORE_SETTING(viewing_range_nodes_max, "240", s16, getS16);
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment