4coder/4coder_custom.cpp

34 lines
834 B
C++
Raw Normal View History

2016-03-24 01:05:28 +00:00
// Delete CustomCurrent to define your own customizations or
// set it to one of the preexisting options
#define Custom_Current Custom_Default
2016-03-07 05:13:20 +00:00
2016-03-24 01:05:28 +00:00
#define Custom_Default 1
2016-03-07 05:13:20 +00:00
// The following customization schemes are power users only:
2016-03-24 01:05:28 +00:00
#define Custom_HandmadeHero 2
2016-02-25 12:12:09 +00:00
2016-03-07 05:13:20 +00:00
// TOP
2016-02-29 03:35:19 +00:00
#if Custom_Current == Custom_Default
# include "4coder_default_bindings.cpp"
#elif Custom_Current == Custom_HandmadeHero
2016-03-24 01:05:28 +00:00
# include "power/4coder_casey.cpp"
2016-03-05 08:10:43 +00:00
#endif
2016-02-25 12:12:09 +00:00
extern "C" GET_BINDING_DATA(get_bindings){
Bind_Helper context_actual = begin_bind_helper(data, size);
Bind_Helper *context = &context_actual;
#if Custom_Current == Custom_Default
2016-03-24 01:05:28 +00:00
default_get_bindings(context, true);
#elif Custom_Current == Custom_HandmadeHero
2016-03-05 08:10:43 +00:00
casey_get_bindings(context);
#endif
2016-02-25 12:12:09 +00:00
end_bind_helper(context);
return context->write_total;
}
// BOTTOM