Phoenix
Object-oriented orthogonally persistent operating system
Functions
phoenix_stubs.cpp File Reference

Stubs for global Phoenix functions. More...

#include <phoenix_ut.h>
#include <sys.h>
Include dependency graph for phoenix_stubs.cpp:

Functions

void __ut_trace (const char *file, int line, const char *msg,...)
 Output message to the test log.
void * __operator_new (size_t size, const char *file, int line, bool isArray, size_t align)
 Back-end for operator new which should be implemented by each environment.
void * __operator_new (size_t size, bool isArray, size_t align)
 Back-end for operator new which should be implemented by each environment.
void __operator_delete (void *ptr, bool isArray)
 Back-end for operator delete which should be implemented by each environment.

Detailed Description

Stubs for global Phoenix functions.


Function Documentation

void __operator_delete ( void *  ptr,
bool  isArray = false 
)

Back-end for operator delete which should be implemented by each environment.

Parameters:
ptrPointer to the memory block being freed.
isArraytrue if delete[] operator was invoked, false otherwise.
void* __operator_new ( size_t  size,
bool  isArray = false,
size_t  align = 0 
)

Back-end for operator new which should be implemented by each environment.

This version is invoked in release builds.

Parameters:
sizeAllocation size.
isArraytrue if new[] operator was invoked, false otherwise.
alignAlignment value. Zero indicates that no specific alignment required.
Returns:
Pointer to allocated memory block.
void* __operator_new ( size_t  size,
const char *  file,
int  line,
bool  isArray = false,
size_t  align = 0 
)

Back-end for operator new which should be implemented by each environment.

This version is invoked in debug builds with source code location in arguments.

Parameters:
sizeAllocation size.
fileSource file name where from the operator is invoked.
lineLine number in the source file where from the operator is invoked.
isArraytrue if new[] operator was invoked, false otherwise.
alignAlignment value. Zero indicates that no specific alignment required.
Returns:
Pointer to allocated memory block.
void __ut_trace ( const char *  file,
int  line,
const char *  msg,
  ... 
)

Output message to the test log.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines