mirror of https://gitlab.com/rnger/amath
Fix method signature
This commit is contained in:
parent
65f9d88562
commit
cbb6c747f6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue