4coder/4coder_custom.cpp

35 lines
891 B
C++
Raw Normal View History

// Set to Custom_None if you're going to drop in your own include/get_bindings call.
// or choose one of the preexisting customizations
#define Custom_Current Custom_Default
2016-03-07 05:13:20 +00:00
#define Custom_None -1
2016-03-07 05:13:20 +00:00
#define Custom_Default 0
// The following customization schemes are power users only:
2016-03-05 08:10:43 +00:00
#define Custom_HandmadeHero 1
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-07 22:13:59 +00:00
# include "power/4coder_handmade_hero.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
default_get_bindings(context);
#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