Skip to content

Commit 2c4d14e

Browse files
author
Martin Klang
committed
moved dummy std:: exceptions
1 parent 816c14a commit 2c4d14e

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

SoulSource/SoulPatch.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717

1818
#include "soul.hpp"
1919

20-
namespace std {
21-
void __throw_bad_alloc (void) { error(PROGRAM_ERROR_STATUS, "bad alloc"); while(1); }
22-
void __throw_bad_function_call() { error(PROGRAM_ERROR_STATUS, "bad func"); while(1); }
23-
void __throw_length_error (const char *) { error(PROGRAM_ERROR_STATUS, "bad len"); while(1); }
24-
}
25-
2620
#define MAX_MIDI_MESSAGES 32
2721
class SoulPatch : public Patch {
2822
private:

Source/operators.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdlib.h>
22
#include "heap.h"
3+
#include "message.h"
34

45
extern "C" void *__gxx_personality_v0;
56
extern "C" void __cxa_end_cleanup (void);
@@ -19,3 +20,9 @@ extern "C" int __cxa_guard_acquire ( __int64_t *guard_object ){ return !*(char *
1920
// Sets the first byte of the guard object to a non-zero value.
2021
extern "C" void __cxa_guard_release ( __int64_t *guard_object ){ *(char *)guard_object = 1; }
2122
extern "C" void __cxa_guard_abort ( __int64_t *guard_object ){}
23+
24+
namespace std {
25+
void __throw_bad_alloc (void) { error(PROGRAM_ERROR_STATUS, "bad alloc"); while(1); }
26+
void __throw_bad_function_call() { error(PROGRAM_ERROR_STATUS, "bad func"); while(1); }
27+
void __throw_length_error (const char *) { error(PROGRAM_ERROR_STATUS, "bad len"); while(1); }
28+
}

0 commit comments

Comments
 (0)