Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Core defs.h double definintion [BUG][FIXED]
BugFixedDead.gif  Core defs.h double definintion [BUG][FIXED] [message #1648] Sat, 11 March 2006 13:04 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

at the end of defs.h (from Core) MemoryInitDiagnostics() is defined twice which is the cause for some compilers to fail compiling it..

#else

inline void *MemoryAllocPermanent(size_t size) { return malloc(size); }
inline void *MemoryAlloc(size_t size) { return new byte[size]; }
inline void MemoryFree(void *p) { delete[] (byte *) p; }
inline size_t HeapRoundUp(size_t size) { return (size + 3) & -4; }
inline void MemoryShrink() {}
inline void MemoryProbe(const char *name, dword flags) {}
inline const char *MemoryCounters() { return ""; }
inline void MemoryInitDiagnostics() {} <<<< 1
inline void *MemoryAllocDebug(dword size) {}
inline void MemoryFreeDebug(void *p) {}
inline void MemoryCheck() {}
inline void MemoryInitDiagnostics() {} <<<<< 2

#endif

[Updated on: Wed, 03 May 2006 19:48] by Moderator

Report message to a moderator

Re: defs.h double definintion bug [message #1651 is a reply to message #1648] Sat, 11 March 2006 15:30 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
I wish fixing more bugs would be as simple as this one:)

Mirek
Previous Topic: encoding of command line arguments
Next Topic: What happened to long ints?
Goto Forum:
  


Current Time: Thu May 16 11:26:24 CEST 2024

Total time taken to generate the page: 0.02556 seconds