Permalink
Browse files

Add enif_realloc NIF API function

  • Loading branch information...
1 parent db2dda2 commit 4318f0fac32e9cfaa5e15cd46589676619e772a6 @krestenkrab krestenkrab committed Oct 10, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 jnif/jnif.cc
View
@@ -19,6 +19,11 @@ static jclass ERT_class;
static jmethodID m_ERT__badarg;
+void* enif_realloc(void* ptr, size_t size)
+{
+ return realloc(ptr, size);
+}
+
void *enif_alloc(size_t size)
{
return malloc(size);

0 comments on commit 4318f0f

Please sign in to comment.