
#ifndef mfbase1_h__
#define mfbase1_h__

#include "mfbase0.h"


#define MF_ASSERT(cond_, msg_)  MF_assert(cond_, msg_)
#define MF_SET_ERROR( errormessage_ )

MF_API(void) MLD_finalize();

MF_API(void)  MF_assert (int a_cond, const char *a_msg);
MF_API(void)  MF_debug  (const char *a_format, ... );
MF_API(void*) MF_malloc (int a_size);
MF_API(void*) MF_realloc (void *a_old, int a_size);
MF_API(void)  MF_free   (void *a_mem);

MF_API(int)  MF_strlen (const char *str);
MF_API(void) MF_strcpy (char *aDst, const char *aSrc);
MF_API(void) MF_strcat (char *aDst, const char *aSrc);

#define MF_NEW(ty)         (ty *)MF_malloc(sizeof(ty))
#define MF_NEW_(ty, count) (ty *)MF_malloc(sizeof(ty) * (count))
#define MF_RENEW_(ty, obj, count)  (ty *)MF_realloc(obj, sizeof(ty) * (count))

#endif // mfbase1_h__


