42 lines
No EOL
1 KiB
C++
42 lines
No EOL
1 KiB
C++
// Pi1541 - A Commodore 1541 disk drive emulator
|
|
// Copyright(C) 2018 Stephen White
|
|
//
|
|
// This file is part of Pi1541.
|
|
//
|
|
// Pi1541 is free software : you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Pi1541 is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Pi1541. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#include <stdlib.h>
|
|
|
|
extern "C" void *__dso_handle = 0;
|
|
|
|
void* operator new(size_t size) noexcept
|
|
{
|
|
return malloc(size);
|
|
}
|
|
|
|
void operator delete (void* ptr)
|
|
{
|
|
free(ptr);
|
|
}
|
|
|
|
namespace std
|
|
{
|
|
void __throw_bad_alloc()
|
|
{
|
|
}
|
|
|
|
void __throw_length_error(char const*e)
|
|
{
|
|
}
|
|
} |