mirror of
https://gitlab.com/rnger/amath
synced 2025-10-06 10:59:56 +00:00
Fix method signature
This commit is contained in:
@ -54,11 +54,11 @@ public:
|
||||
/**
|
||||
* @brief Parses the input into a syntax tree.
|
||||
*
|
||||
* @return SyntaxNode* representing an pointer to the top node of the tree.
|
||||
* @return SyntaxNode* representing a pointer to the top node of the tree.
|
||||
* Notice: The caller is responsible for releasing memory.
|
||||
*
|
||||
*/
|
||||
SyntaxNode* Parse();
|
||||
SyntaxNode* Parse(); // Clang ns_returns_retained
|
||||
|
||||
private:
|
||||
Lexer *lexer;
|
||||
|
@ -163,11 +163,11 @@ inline void operator delete[] (void* ptr) {
|
||||
#ifdef __cplusplus
|
||||
#if (__GNUC__ > 2) || defined (_WIN32)
|
||||
#include <new>
|
||||
inline void* operator new (size_t size) throw() {
|
||||
inline void* operator new (size_t size) throw(std::bad_alloc) {
|
||||
return AllocMemSafe(size);
|
||||
}
|
||||
|
||||
inline void* operator new[] (size_t size) throw() {
|
||||
inline void* operator new[] (size_t size) throw(std::bad_alloc) {
|
||||
return AllocMemSafe(size);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user