1 2 3 4 5 6 7 8 9 10 11 | extern "C" int32_t get_bindings(void *data, int32_t size){ Bind_Helper context_ = begin_bind_helper(data, size); Bind_Helper *context = &context_; set_all_default_hooks(context); // put bindings here int32_t result = end_bind_helper(context); return(result); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 | extern "C" int32_t get_bindings(void *data, int32_t size){ Bind_Helper context_ = begin_bind_helper(data, size); Bind_Helper *context = &context_; set_all_default_hooks(context); // put bindings here bind(context, 'w', MDFR_ALT, change_active_panel); int32_t result = end_bind_helper(context); return(result); sad } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /* 4coder_default_include.cpp - Default set of commands and setup used in 4coder. */ // TOP #if !defined(FCODER_DEFAULT_INCLUDE_CPP) #define FCODER_DEFAULT_INCLUDE_CPP #include "my_bindings.cpp" // NOTE(allen): Define USE_OLD_STYLE_JUMPS before 4coder_default_include.cpp to get // the direct jumps (instead of sticky jumps). #include "4coder_API/custom.h" |
1 2 3 4 5 6 7 8 9 10 11 12 | c:\Users\qqffx\Downloads\4coder λ buildsuper.bat 4coder_default_bindings.cpp 4coder_metadata_generator.cpp 4coder_default_bindings.cpp c:\users\qqffx\downloads\4coder\my_bindings.cpp(2): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\qqffx\downloads\4coder\my_bindings.cpp(2): error C2146: syntax error: missing ';' before identifier 'get_bindings' c:\users\qqffx\downloads\4coder\my_bindings.cpp(2): error C2143: syntax error: missing ';' before '{' c:\users\qqffx\downloads\4coder\my_bindings.cpp(2): error C2447: '{': missing function header (old-style formal list?) c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\stdint.h(19): error C2378: 'int32_t': redefinition; symbol cannot be overloaded with a typedef c:\users\qqffx\downloads\4coder\my_bindings.cpp(1): note: see declaration of 'int32_t' c:\users\qqffx\downloads\4coder\4coder_lib\4coder_string.h(21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include "4coder_default_include.cpp" extern "C" int32_t get_bindings(void *data, int32_t size){ Bind_Helper context_ = begin_bind_helper(data, size); Bind_Helper *context = &context_; set_all_default_hooks(context); // put bindings here bind(context, 'w', MDFR_ALT, change_active_panel); int32_t result = end_bind_helper(context); return(result); } |
1 | buildsuper.bat my_bindings.cpp |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include "4coder_default_include.cpp" extern "C" int32_t get_bindings(void *data, int32_t size){ Bind_Helper context_ = begin_bind_helper(data, size); Bind_Helper *context = &context_; set_all_default_hooks(context); // put bindings here bind(context, 'w', MDFR_ALT, change_active_panel); int32_t result = end_bind_helper(context); return(result); } |
1 2 3 4 5 6 | c:\Users\qqffx\Downloads\4coder λ buildsuper.bat my_bindings.cpp my_bindings.cpp 4coder_metadata_generator.cpp my_bindings.cpp Creating library custom_4coder.lib and object custom_4coder.exp |
steughar
Creating library custom_4coder.lib and object custom_4coder.exp