#ifndef _NEWDELETEOP_H_
#define _NEWDELETEOP_H_

#include <hwsubmdl.h>

#if defined(__GNUG__) || defined(__GNUC__)
//pretizeni new/delete na gnu/linux

extern void * __error_if_operators_not_overloaded__;

static inline void * __attribute__ ((used)) __func_operator_check(void)
{
    if (__error_if_operators_not_overloaded__) return __error_if_operators_not_overloaded__;
    return 0;
}

#elif defined(_WIN32)
//pretizeni new/delete na windows (neni potreba pretezovat, pokud by bylo potreba, doplnit sem)
#error operator overloading on windows not implemented

#endif

#endif // _NEWDELETEOP_H_
