#include <stdlib.h>
#include <stdio.h>
#include "omalloc.h"
Go to the source code of this file.
◆ OM_MARK_AS_STATIC
#define OM_MARK_AS_STATIC |
( |
|
addr | ) |
do {} while (0) |
◆ OMALLOC_C
◆ freeSize()
void freeSize |
( |
void * |
addr, |
|
|
size_t |
size |
|
) |
| |
Definition at line 95 of file omalloc.c.
96{
98}
#define omFreeSize(addr, size)
◆ malloc()
void * malloc |
( |
size_t |
size | ) |
|
Definition at line 85 of file omalloc.c.
86{
87 void* addr;
89
92 return addr;
93}
#define omTypeAllocAligned
#define OM_MARK_AS_STATIC(addr)
◆ reallocSize()
void * reallocSize |
( |
void * |
old_addr, |
|
|
size_t |
old_size, |
|
|
size_t |
new_size |
|
) |
| |
Definition at line 100 of file omalloc.c.
101{
102 if (old_addr && new_size)
103 {
104 void* new_addr;
107 return new_addr;
108 }
109 else
110 {
113 }
114}
#define omTypeReallocAlignedSize