Merge pull request #345 from keyboardio/h/use-error-when-v2-only

Give a nice error message on Kaleidoscope.use() when compiling with V2 API only
pull/346/head
Jesse Vincent 7 years ago committed by GitHub
commit d7007ad402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,6 +140,11 @@ class Kaleidoscope_ {
use(plugins...); use(plugins...);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
} }
#else
// NOTE: Do **NOT** remove this when sunsetting the V1 API!
inline void use(...) {
static_assert(false, _DEPRECATE(_DEPRECATED_MESSAGE_USE));
}
#endif #endif
// ---- hooks ---- // ---- hooks ----

Loading…
Cancel
Save