#include #include #ifdef _MSC_VER #include #endif void c_with_alloca(size_t size, void (*callback)(uint8_t *, void *), void* data) { #ifdef _MSC_VER uint8_t *buffer = _alloca(size); #else uint8_t buffer[size]; #endif return callback(&buffer[0], data); }