Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
wclap_adapter.hpp File Reference
#include <pulp/format/processor.hpp>
#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  pulp
namespace  pulp::format
 What the product grants a device: the quota table indexed by capability tier and live thermal state.
namespace  pulp::format::wclap

Macros

#define PULP_WCLAP_PLUGIN(factory_fn)

Functions

void * pulp::format::wclap::wclap_malloc (size_t size)
void pulp::format::wclap::wclap_free (void *ptr)
void * pulp::format::wclap::cabi_realloc (void *ptr, size_t old_size, size_t align, size_t new_size)

Macro Definition Documentation

◆ PULP_WCLAP_PLUGIN

#define PULP_WCLAP_PLUGIN ( factory_fn)
Value:
PULP_CLAP_PLUGIN(factory_fn) \
\
/* WebCLAP memory allocation exports */ \
extern "C" { \
__attribute__((export_name("malloc"))) \
void* wclap_malloc(size_t size) { \
return ::malloc(size); \
} \
__attribute__((export_name("free"))) \
void wclap_free(void* ptr) { \
::free(ptr); \
} \
__attribute__((export_name("cabi_realloc"))) \
void* cabi_realloc(void* ptr, size_t old_size, \
size_t, size_t new_size) { \
(void)old_size; \
if (new_size == 0) { ::free(ptr); return nullptr; } \
return ::realloc(ptr, new_size); \
} \
}
#define PULP_CLAP_PLUGIN(factory_fn)
Definition clap_entry.hpp:1137
void * cabi_realloc(void *ptr, size_t old_size, size_t align, size_t new_size)